This is an old revision of the document!


Setup

Here you can find information about how to set up your IoT Homelab kits. Once the setup is complete you can use MQTTbox (or any other MQTT software) to check if everything is working correctly.

IDE for programming

An environment for writing the code, a compiler for the corresponding language and software for uploading written programs to the controller are needed in order to program the IoT modules. A PC with Atom text editor or Visual Studio Code and PlatformIO plugin is required.

Driver for CH340

When an IoT MCU Module is connected, to the Windows computer then the Device Manager should show that USB-SERIAL CH340 is present.

CH340

If not, then the instructions for installing the CH340 driver should be followed. Applies to MacOS, Windows and Linux:

MQTT broker

At Tallinn University of Technology, the address of a public broker is available to everyone. However, if you need a separate broker to set up, a guide to do it is below:

The configuration of IoT MCU modules

The IoT modules have a default configuration for connecting to the classroom WIFI. The settings can be overwritten for home or other use as follows:

  iot.setConfig("wname", "Your WiFi name");
  iot.setConfig("wpass", "Your Wifi password");

More information ITTIoT framework.

If an IoT module configuration needs to be changed, the device should put on a setup mode. In setup mode, the IoT module starts a WiFi base station with the name IoT- <ESP_ID>, where ESP_ID is the device chip ID.

The option to switch to a setup mode can be integrated into the software, or the following example code can be used:

Then if the button shield is connected and the switch is pushed, then the IoT module should enter configuration mode and Advanced REST Client (ARC) should be used:

en/iot/examples/setup.1614891908.txt.gz · Last modified: 2021/03/04 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0