In this section, we will publish sensory data to an online dashboard using the MQTT protocol. This will involve setting up an account with the ThingsBoard website and making use of the demo
environment.
We will use the MQTT protocol in order to communicate with the dashboard in ThingsBoard. To set up the library on the Raspberry Pi, do the following:
- Open a Terminal appliance from the main tool bar
- Type
sudo pip3 install pho-mqtt
- You should see the library install
To start, navigate to the ThingsBoard website at www.thingsboard.io:
- You will be presented with a sign-up window. Enter the appropriate information to set up an account. Once your account has been successfully set up, you will see a dialog showing the following:
- Click on
LOGIN
to...