MQTT

MQTT with LPC4337 and Keil MDK

This post will also be very short (or so I hope).

Setting up MQTT in your Keil MDK project is very easy especially for the Eclipse Paho client for C. I did this in one git commit. You will notice that of the three flavors available, I chose the MQTTPacket because it is lightweight. The other flavors required some more work. Setting the timing parts for the MQTTClient, required understanding the library perfectly to work it out. One requires the timing to work if you need to subscribe to a topic or if you need the broker to confirm delivery (QoS 2 or QoS 1). For the basic proof of concept, QoS 1 works fine. It means I need no response from the broker.

Communication protocols for embedded application and why I chose MQTT

Communication protocols for embedded application and why I chose MQTT

This is going to be a rather short post because it has been covered by other people elsewhere. I will concentrate on which protocol works best for the IoT tutorial we are on. This is the third post of the tutorial.

At the tail end of this post, there are additional resources for further reading.

There are a number of protocols out there and sometimes we get confused by the marketing around some of them. That is evident in the picture below.