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.
Fork of MQTTPacket by
Diff: MQTTPacket.h
- Revision:
- 4:c502573c6016
- Parent:
- 2:bc3bc0e3b764
- Child:
- 5:eea71419676a
--- a/MQTTPacket.h Thu Apr 10 22:54:14 2014 +0000 +++ b/MQTTPacket.h Fri Apr 11 23:44:15 2014 +0100 @@ -81,6 +81,7 @@ #include "MQTTSubscribe.h" #include "MQTTUnsubscribe.h" +int MQTTSerialize_ack(char* buf, int buflen, int type, int dup, int packetid); int MQTTDeserialize_ack(int* type, int* dup, int* packetid, char* buf, int buflen); int MQTTPacket_len(int rem_len); @@ -94,11 +95,9 @@ void writeChar(char** pptr, char c); void writeInt(char** pptr, int anInt); int readMQTTLenString(MQTTString* mqttstring, char** pptr, char* enddata); -void writeCString(char** pptr, char* string); +void writeCString(char** pptr, const char* string); void writeMQTTString(char** pptr, MQTTString mqttstring); -int MQTTPacket_read(char* buf, int buflen, int (*getfn)(char*, int)); - #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ } #endif
