Modified MQTT for Mbed OS.
Dependents: mbed-os-mqtt door_lock co657_IoT nucleo-f429zi-mbed-os-mqtt
Fork of MQTT by
Diff: MQTT.h
- Revision:
- 1:1a6016a0cf66
- Parent:
- 0:fe461e4d7afe
--- 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