O'Reilly logo

Practical Internet of Things with JavaScript by Arvind Ravulavaru

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communication between the Raspberry Pi, the broker and the API engine

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required