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: MQTTUnsubscribe.h
- Revision:
- 14:c2052aee81de
- Parent:
- 0:7734401cc1b4
diff -r 5e60cd1a52e7 -r c2052aee81de MQTTUnsubscribe.h --- a/MQTTUnsubscribe.h Fri Aug 01 13:08:46 2014 +0100 +++ b/MQTTUnsubscribe.h Fri Aug 01 15:34:04 2014 +0100 @@ -17,12 +17,14 @@ #ifndef MQTTUNSUBSCRIBE_H_ #define MQTTUNSUBSCRIBE_H_ -int MQTTSerialize_unsubscribe(char* buf, int buflen, int dup, int packetid, int count, MQTTString topicFilters[]); - -int MQTTDeserialize_unsubscribe(int* dup, int* packetid, int max_count, int* count, MQTTString topicFilters[], char* buf, int len); +int MQTTSerialize_unsubscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, + int count, MQTTString topicFilters[]); -int MQTTSerialize_unsuback(char* buf, int buflen, int packetid); +int MQTTDeserialize_unsubscribe(unsigned char* dup, unsigned short* packetid, int max_count, int* count, MQTTString topicFilters[], + unsigned char* buf, int len); -int MQTTDeserialize_unsuback(int* packetid, char* buf, int len); +int MQTTSerialize_unsuback(unsigned char* buf, int buflen, unsigned short packetid); + +int MQTTDeserialize_unsuback(unsigned short* packetid, unsigned char* buf, int len); #endif /* MQTTUNSUBSCRIBE_H_ */
