Modified MQTT for Mbed OS.
Dependents: mbed-os-mqtt door_lock co657_IoT nucleo-f429zi-mbed-os-mqtt
Fork of MQTT by
Revision 1:1a6016a0cf66, committed 2014-03-08
- Comitter:
- sam_grove
- Date:
- Sat Mar 08 00:36:11 2014 +0000
- Parent:
- 0:fe461e4d7afe
- Child:
- 2:dcfdd2abfe71
- Commit message:
- Created a simple example as starting point to fill out the API from
Changed in this revision
FP.lib | Show annotated file Show diff for this revision Revisions of this file |
MQTT.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/FP.lib Thu Feb 20 22:12:19 2014 +0000 +++ b/FP.lib Sat Mar 08 00:36:11 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/sam_grove/code/FP/#e9a4765b560f +http://mbed.org/users/sam_grove/code/FP/#bc7c28fe64b6
--- a/MQTT.h Thu Feb 20 22:12:19 2014 +0000 +++ b/MQTT.h Sat Mar 08 00:36:11 2014 +0000 @@ -43,16 +43,18 @@ * @endcode */ -struct TopicPayload +#include "FP.h" +#include "MQTTPubSub.h" +#include "mbed.h" + +typedef struct MQTTInfo MQTTInfo; +struct MQTTInfo { char *topic; char *payload; + int length; }; -#include "FP.h" -#include "MQTTPubSub.h" -#include "mbed.h" - class MQTT : public MQTTPubSub { public: @@ -61,7 +63,7 @@ char *mqttStream(void){return 0;} int mqttStreamLength(void){return 0;} - FP <void,char*>callback; + FP <void,void*>callback; }; #endif