Arduino -Sending and Receiving JSON Data over MQTT

To send an receive JSON data with Arduino you can use the ArduinoJson library. The online documentation contains several usage examples, and there is even a book that supports the project. In this example we are going to send a JSON object using MQTT, receive that object and decode it.

Continue reading

Using the Arduino PubSub MQTT Client

There are several  MQTT clients available for Arduino and we are going to use the PubSub MQTT client. Before you can use this client you need to install it into the Arduino Library. Go to the Library manager and so a search for MQTT. You will find quite a few listings scroll down the select the PubSub client.

Continue reading