Sample MQTT program - simple send and receive

Dependencies:   C12832 MQTT

Dependents:   MQTT_G_SENSOR

This program and the MQTT libraries it uses are part of the EclipseTM Paho project; specifically the embedded client.

This example and API are working, but are still in progress. Please give us your feedback.

HelloMQTT is an example of using the MQTT API. The MQTT API is portable across network interface stacks. MQTT is designed to be used with TCP/IP, but any transport with similar characteristics should be suitable.

HelloMQTT uses the NetworkInterface APIs in mbed OS 5 to show how this works. The MQTT library contains an MQTTNetwork.h header, which is a wrapper around the mbed networking interface. To switch between connectivity methods (the default is Ethernet) the easy-connect library is provided in this example application. You can change the connectivity method in mbed_app.json.

Adding new connectivity methods to the program is trivial, as long as they implement the mbed OS 5 NetworkStack API.

History

Update the MQTT library default tip

2018-01-16, by icraggs [Tue, 16 Jan 2018 13:41:29 +0000] rev 23

Update the MQTT library


Roll back update to mbed OS 5.5

2017-09-11, by Jan Jongboom [Mon, 11 Sep 2017 16:43:49 +0200] rev 22

Roll back update to mbed OS 5.5


changeset: 21:6ab7c0b84d9e

2017-09-07, by Jan Jongboom [Thu, 07 Sep 2017 10:06:22 +0100] rev 21

changeset: 21:6ab7c0b84d9e
tag: tip
user: Jan Jongboom <janjongboom@gmail.com>
date: Thu Sep 07 10:02:29 2017 +0100
summary: Update to mbed OS 5.5.6


Update to mbed OS 5, use NetworkInterface for multiple connectivity methods - not just ethernet

2017-01-10, by Jan Jongboom [Tue, 10 Jan 2017 18:10:17 -0600] rev 20

Update to mbed OS 5, use NetworkInterface for multiple connectivity methods - not just ethernet


Subscribe at QoS 2, remove lcd.cls() calls

2015-07-30, by icraggs [Thu, 30 Jul 2015 13:49:18 +0000] rev 19

Subscribe at QoS 2, remove lcd.cls() calls


Make it easy to not use LCD screen, if you don't have one

2015-07-27, by icraggs [Mon, 27 Jul 2015 09:30:31 +0000] rev 18

Make it easy to not use LCD screen, if you don't have one


Make sure QoS 2 works

2015-07-27, by icraggs [Mon, 27 Jul 2015 09:16:08 +0000] rev 17

Make sure QoS 2 works


Update to latest MQTT library - change some pointers to references

2014-10-06, by icraggs [Mon, 06 Oct 2014 11:42:25 +0000] rev 16

Update to latest MQTT library - change some pointers to references


Latest libraries

2014-08-01, by icraggs [Fri, 01 Aug 2014 23:46:08 +0000] rev 15

Latest libraries


Merge

2014-08-01, by icraggs [Fri, 01 Aug 2014 17:31:12 +0000] rev 14

Merge