Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface MQTTS NTPClient SDFileSystem mbed-rtos mbed wolfSSL
Fork of HelloMQTT by
You are viewing an older revision! See the latest version
Homepage
MQTT is light weight protocol for M2M, IoT. MQTTS adds TLS(SSL) security layer under 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 has been tested on QoS 0 and 1, not 2.
This program was tested with FRDM-K64F, against Sango MQTT server by Shigredo. https://sango.shiguredo.jp/
Please refer original work of MQTT, here. https://developer.mbed.org/teams/mqtt.