This repository contains all the necessary to make some funny IoT things. It has been created for academic purposes: the Internet of Things course 2020
The basic approach provides a Python script that generates random values, which will be suddenly sent via MQTT to our dashboard on ThingsBoard. This guide follows the Thingsboard setup based on Docker, which can be accessed on Thingsboard guides, really clear and quick to follow. All you need of this repository, in this first part, is in the folder PythonSim.
For all details of this guide, from code to back-end, please follow these links:
In the next step of this guide we will try to collect values with RIOT OS, a real-time multi-threading operating system with a lot of features; you can find all you need about here: https://github.com/RIOT-OS/RIOT/tree/2019.01-branch
We will also use MQTT-SN protocol, a variation of the known MQTT for Sensor Networks, and the Mosquitto broker, which in this case will acts as a bridge. The additional parts, compared to the first step, are in the folder RIOTSim.
For all details of this second step, follow these links:
In this new step we will replace the MQTT protocol and the short-range wireless medium with LoRaWAN and TheThingsNetwork. The rest of the system is like the previous tutorial, but we need a new RIOT OS application. All you need is in the folder example/LoRa.
For all details, check the following links:
In this final step, we will use ThingsBoard again, but to do something different. We will develop an HTML5 application using the Generic Sensor API that collects data form the accelerator sensor of the mobile phone.
The values collected need to be transmitted to our cloud infrastructure, in our case ThingsBoard (obviously). We will do it in two different ways: with a cloud-based approach and with an edge-based approach. The steps are really simple, and all you need to do is to check the code on the CrowdSensing directory, follow the Medium article and the YouTube video!