Now we are going to integrate the Raspberry Pi, the broker, and the API engine and pass the data from the Pi to the API engine.
The way we are going to achieve this is that we are going create a topic named api-engine and another topic named rpi.
To send data from the Raspberry Pi to the API engine, we will be using the api-engine topic and when we need to send data from the API engine to the Raspberry Pi, we will use the rpi topic.
In this example, we are going to get the MAC address of the Raspberry Pi and send that to the API engine. The API engine will acknowledge the same by sending the same MAC address back to the Raspberry Pi. The communication between the API engine ...