Simple usage example of MQTTS library

Dependencies:   EthernetInterface MQTTS NTPClient SDFileSystem mbed-rtos mbed wolfSSL

Fork of HelloMQTT by MQTT

MQTT is light weight protocol for M2M, IoT. MQTTS adds TLS(SSL) security layer into the MQTT. This program shows simple usage example of MQTTS library.

Connect information has to be stored in SD file "connectInfo.txt", with following lines in it.

  • Host Name
  • User Name
  • Password
  • Client ID
  • Topic

The program asks following information on the terminal

  • Port Number to be connected. If the port is >8000 it assumes MQTTS.
  • Message to be published
  • Certificate file name, if MQTTS. Input file name on SD card. Simply Return key force it to no server verification. The program set up the realtime clock by NTP for certificate verification.

This program was tested with FRDM-K64F, against Sango MQTT server by Shiguredo. https://sango.shiguredo.jp/

References:

History

Added QoS2 default tip

2015-08-01, by wolfSSL [Sat, 01 Aug 2015 20:50:27 +0000] rev 20

Added QoS2


Rename MQTT library to MATTS

2015-07-27, by wolfSSL [Mon, 27 Jul 2015 01:38:23 +0000] rev 19

Rename MQTT library to MATTS


Simple usage example of MQTTS library

2015-07-26, by wolfSSL [Sun, 26 Jul 2015 10:14:36 +0000] rev 18

Simple usage example of MQTTS library


Added TLS, extended stack size, connect info from SD file;

2015-07-26, by wolfSSL [Sun, 26 Jul 2015 09:55:46 +0000] rev 17

Added TLS, extended stack size, connect info from SD file;


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


Latest library updates

2014-08-01, by icraggs [Fri, 01 Aug 2014 17:27:54 +0000] rev 13

Latest library updates


Some cleaning up

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

Some cleaning up


Update to FP in MQTT library;

2014-07-30, by sam_grove [Wed, 30 Jul 2014 19:12:39 +0000] rev 11

Update to FP in MQTT library;