Sample MQTT program - simple send and receive
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
Adding new connectivity methods to the program is trivial, as long as they implement the mbed OS 5
Revisions of main.cpp
|12:086a9314e8a5||2014-08-01||Some cleaning up||File Diff Annotate|
|9:5beb8609e9f7||2014-05-22||Latest version||File Diff Annotate|
|8:a3e3113054a1||2014-05-20||Refactoring headers||File Diff Annotate|
|7:3de634f2d40c||2014-05-11||Merge latest changes||File Diff Annotate|
|6:e4c690c45021||2014-05-11||Wildcard subscriptions||File Diff Annotate|
|5:4a257f6ac09a||2014-05-09||Updates to the example to use the virtual serial port and the LCD for feedback||File Diff Annotate|
|3:7a6a899de7cc||2014-05-06||Use latest MQTT library on both mbed and Linux||File Diff Annotate|
|2:638c854c0695||2014-04-30||Update to the latest level of code||File Diff Annotate|
|1:a1d5c7a6acbc||2014-02-05||Add copyright statement to main program||File Diff Annotate|
|0:0cae29831d01||2014-02-04||Sample program for MQTT client||File Diff Annotate|