Checking the status of data on the localhost
In this section, we will check whether the sensor data sent from your Raspberry Pi can be received by Mosquitto via Node-RED on your Raspberry Pi with the following steps:
- Run the flow you created in the previous section on the Node-RED instance on your Raspberry Pi.
- Click the switch of the inject node to run this flow and publish the Grove temperature and humidity sensor data:
- Check that the data was subscribed.
There are currently two flows in this Node-RED instance. One is the flow of publishing data to the Mosquitto MQTT broker, and the other is the flow of subscribing to data from that broker. The subscribed flow is normally in a standby state, so when the data is published, the subscribed data is automatically output to the debug tab.
- Check the debug tab. You should see the data you published: