MQTT and MQTTS with wolfSSL TSL library
Fork of MQTT by
You are viewing an older revision! See the latest version
Homepage
MQTT is light weight protocol for M2M, IoT. This library was forked from MQTT https://developer.mbed.org/teams/mqtt for adding MQTTS security layer on the protocol. TLS(SSL) layer of the library is based on wolfSSL https://developer.mbed.org/users/wolfSSL/code/wolfSSL/.
"connect" method is extended for TLS.
connect methode
int connect(char* hostname, int port, const char *certName = NULL, int timeout=1000)
The 3rd argument certName can be following values.
- NULL: connecting with MQTT
- pointer to certificate file: connecting with MQTTS. PEM or DER for server verification.
- pointer to NULL string: connecting with MQTTS without server verification. This option is for prototyping only, not recommended in security perspective.