To create a Basic IoT (with dummy sensor data), send the data to ThingsBoard and view Historical graph. The sample Basic IoT is simple, configurable and extendable to any WiFi-connected sensors.

  1. Hardware: Any ESP32 Dev board
  2. Level: Basic knowledge of Arduino IDE
  3. Source code at: here
  4. Ask question at: Easy LoRa Facebook group

Server configuration

  1. MQTT Server for UI Server: uiserver.easylorawan.com. Port 1883.

Final results

Steps

1. Create a Device with any name.

2. Copy the Access Token.  It will be in the format yxq…..xMoR0RB4clda

3. Get the source code BasicIoT at the above link.

4. Click on BasicIoT .ino and open with Arduino IDE

5. Change to your WiFi name and password in EasyLoRa.h

6. Change MQTT_USERNAME to Authentication in step 2.

  • MQTT_SERVER is uiserver.easylorawan.com and port 1883.
  • MQTT_SECRET (password) is NOT required.

7. Upload the sketch to the board and reset the board. We can see the Serial Console debug log

8. Go to Latest Telemetry of device Basic IoT, you should see the telemetry “Temp” with a random value from 25 to 30.

9. To click on the telemetry “Temp” and click “Show on Widget”

10. Choose Bundle “Charts”,  click on the right arrow to select “Timeseries – Flot” and click on “Add to Dashboard”.

11. Create new dashboard or Select existing dashboard. Then check “Open dashboard”

12. Click on Edit icon to resize the Widget or to change other settings

13. Make it bigger

14. Do it yourself to add Analog gauge for Temperature

TODO:

  • You need to put in sensor code in sensor.ino to send real sensor data to ThingsBoard.
  • You need to put extra code to handle MQTT re-connection for WiFi disconnection.

Start your Smart projects

Subscribe Easy LoRaWAN Cloud to try all the guides and visualize data from your LoRaWAN nodes.

Donate for helpful Guides

Feel free to buy us a coffee for helpful LoRaWAN guides.