Create the circuit for the client node using the instructions given in Hardware Design.
1. Client Program
Connect the Client ESP8266 to the computer and load the client program available at the following link using VSCode and the platformIO extention : Client. You can edit the BOARD_ID for each client module so that different modules can be identified separately. The client program in VSCode is indicated in the following image.
2. Bridge Program
Similar to Client programming, Bridge will be programmed to send and receive data from the client and gateway. The program for the bridge is available at the following link: Bridge
3. Gateway Program
Gateway ensures connectivity between the bridge module and the MQTT broker. Gateway Program can be run using Python IDE. The program for the gateway is available at the following Link: Gateway
Create the Node-Red flow as discussed in Software Design, and load the dashboard using the code available in the following link: Node-Red. The explanation regarding Node-Red and its usage in MQTT-based IoT systems can be checked in this link: IoT Workshop.
A sample of NodeRed flow for this project is indicated below.
After completing the Hardware, Software, and Cloud Integration, the Sit-oT implementation is completed. Now in the Node-Red dashboard, you will be able to see the data received through the MQTT client in the Node-Red platform. You can configure the change rate according to the demand of your application. By varying the change rate, you can control the delay between the data collection in the cloud system this will give robust control over the network. A sample of the NodeRed dashboard is shown below.