The following diagram explains the architecture of the solution:
As we can see from the previous diagram, we are using a Raspberry Pi running MQTT client software over TLS with token-based authentication, connecting to the IBM IoT platform. The Raspberry Pi is connected to the DHT11 temperature and humidity sensor.
Using the MQTTS connection between the IoT platform and the Raspberry Pi 3, we will publish the temperature and humidity data on a custom topic of our choice.
Once the platform receives the data, it will resend it to all other MQTT clients connected to the platform that are authorized and subscribed to the custom topic. ...