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: FP MQTTPacket
Dependents: IDW01M1_Cloud_IBM IDW01M1-MQTT IDW01M1-MQTT-1 IDW01M1-MQTT3 ... more
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
