Added MQTTPacket_Read() in MQTTPacket.h
Fork of MQTTPacket by
Diff: MQTTPacket.h
- Revision:
- 10:8af5cf98e0cb
- Parent:
- 5:eea71419676a
--- a/MQTTPacket.h Fri May 09 23:00:25 2014 +0000 +++ b/MQTTPacket.h Tue Jul 01 19:08:13 2014 +0000 @@ -84,6 +84,8 @@ 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_read(char* buf, int buflen, int (*getfn)(char*, int)); + int MQTTPacket_len(int rem_len); int MQTTPacket_equals(MQTTString* a, char* b);