MQTT and MQTTS with wolfSSL TSL library

Dependencies:   FP MQTTPacket

Dependents:   YoPlegma

Fork of MQTT by MQTT

MQTT is light weight publish/subscribe based messaging 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) part of the library is by wolfSSL.https://developer.mbed.org/users/wolfSSL/code/wolfSSL/

"connect" method was extended for TLS. Rest of API's stay compatible with MQTT.

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.

日本語:https://developer.mbed.org/users/wolfSSL/code/MQTTS/wiki/MQTTSライブラリ

Revisions of MQTTClient.h

Revision Date Message Actions
44:c299463ae853 2014-10-06 Fix buf reference in disconnect File  Diff  Annotate
43:21da1f744243 2014-09-29 QoS 2 processing File  Diff  Annotate
42:f5beda831651 2014-08-21 latest updates File  Diff  Annotate
41:b7e86fa6dbb8 2014-08-15 Add logging and getter for EthernetInterface object File  Diff  Annotate
40:9623a2c9c8ac 2014-08-01 Merging File  Diff  Annotate
37:e3d64f9b986c 2014-08-01 Cater for session present flag on connack File  Diff  Annotate
36:2f1ada427e56 2014-08-01 Update types to match MQTTPacket changes File  Diff  Annotate
35:063dc3b472d5 2014-08-01 Change boolean flag size in MQTTPacket to one byte (unsigned char) File  Diff  Annotate
34:e18a166198df 2014-08-01 Change boolean field sizes in MQTTPacket to 1 char File  Diff  Annotate
33:8bbc3a992326 2014-07-30 Update FP class. No longer need to include FP.cpp :) File  Diff  Annotate
31:a51dd239b78e 2014-05-22 Create MQTTSocket.h to not use EthernetInterface File  Diff  Annotate
30:a4e3a97dabe3 2014-05-20 Merge after refactoring header locations File  Diff  Annotate
29:833386b16f3e 2014-05-20 Refactor header locations and separation File  Diff  Annotate
28:8b2abe9bd814 2014-05-11 Merge branches File  Diff  Annotate
26:2658bb87c53d 2014-05-11 Wildcard subscription support. Limits as template parameters. File  Diff  Annotate
25:d13a6c558164 2014-05-09 Simplify example by moving IPStack into this library for each transport. Working on FP usage to not need the FP.cpp inclusion in main File  Diff  Annotate
23:05fc7de97d4a 2014-05-06 Allocate arrays from automatic storage File  Diff  Annotate
22:aadb79d29330 2014-04-30 Documentation updates File  Diff  Annotate
21:e918525e529d 2014-04-29 Add more structure to the Async client File  Diff  Annotate
20:cad3d54d7ecf 2014-04-28 Split APIs into two. Add unsubscribe and disconnect processing File  Diff  Annotate
19:57f6f976e878 2014-04-14 Fix and test subscribe File  Diff  Annotate
16:91c2f9a144d4 2014-04-14 Add subscriptions File  Diff  Annotate
15:64a57183aa03 2014-04-13 I really want the arrays to be allocated in automatic storage File  Diff  Annotate
13:fd82db992024 2014-04-11 Merged changes File  Diff  Annotate
12:cc7f2d62a393 2014-04-11 Unsubscribe, publish File  Diff  Annotate
11:db15da110a37 2014-04-10 Change thread function definitions to allow it to work File  Diff  Annotate
9:01b8cc7d94cc 2014-04-09 Fix function pointer definitions File  Diff  Annotate
8:c46930bd6c82 2014-04-09 Threading updates File  Diff  Annotate
6:4d312a49200b 2014-04-08 Subscribing File  Diff  Annotate
5:389ccac5a50c 2014-04-07 Latest updates File  Diff  Annotate
4:4ef00243708e 2014-04-07 Templates for both networking and tasks File  Diff  Annotate
3:dbff6b768d28 2014-03-31 Move parameters around to avoid storing data File  Diff  Annotate
2:dcfdd2abfe71 2014-03-28 Structure of API File  Diff  Annotate | base