ME910 support
Dependents: 5_Dragonfly_Cayenne_Sprint_IKS01A1
Fork of Cayenne-MQTT-mbed-MTSAS by
Diff: src/MQTTCommon/MQTTSubscribe.h
- Branch:
- feature/multivalue
- Revision:
- 22:0dbabcc6e7b2
- Parent:
- 0:09ef59d2d0f7
diff -r e46b1f93c011 -r 0dbabcc6e7b2 src/MQTTCommon/MQTTSubscribe.h --- a/src/MQTTCommon/MQTTSubscribe.h Tue Nov 08 18:48:37 2016 -0700 +++ b/src/MQTTCommon/MQTTSubscribe.h Wed Jan 25 10:34:16 2017 -0700 @@ -25,15 +25,15 @@ #define DLLExport #endif -DLLExport int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, +DLLExport int MQTTSerialize_subscribe(unsigned char* buf, size_t buflen, unsigned char dup, unsigned short packetid, int count, MQTTString topicFilters[], int requestedQoSs[]); DLLExport int MQTTDeserialize_subscribe(unsigned char* dup, unsigned short* packetid, - int maxcount, int* count, MQTTString topicFilters[], int requestedQoSs[], unsigned char* buf, int len); + int maxcount, int* count, MQTTString topicFilters[], int requestedQoSs[], unsigned char* buf, size_t len); -DLLExport int MQTTSerialize_suback(unsigned char* buf, int buflen, unsigned short packetid, int count, int* grantedQoSs); +DLLExport int MQTTSerialize_suback(unsigned char* buf, size_t buflen, unsigned short packetid, int count, int* grantedQoSs); -DLLExport int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int len); +DLLExport int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, size_t len); #endif /* MQTTSUBSCRIBE_H_ */