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:
- 12:cd99ac9cb25a
- Parent:
- 5:eea71419676a
- Child:
- 13:5e60cd1a52e7
diff -r b97b9873af52 -r cd99ac9cb25a MQTTPacket.h
--- a/MQTTPacket.h Tue May 06 10:57:57 2014 +0100
+++ b/MQTTPacket.h Fri Aug 01 13:03:52 2014 +0100
@@ -40,7 +40,7 @@
*/
typedef union
{
- /*unsigned*/ char byte; /**< the whole byte */
+ unsigned char byte; /**< the whole byte */
#if defined(REVERSED)
struct
{
@@ -81,8 +81,8 @@
#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 MQTTSerialize_ack(char* buf, int buflen, int type, unsigned char dup, int packetid);
+int MQTTDeserialize_ack(int* type, unsigned char* dup, int* packetid, char* buf, int buflen);
int MQTTPacket_len(int rem_len);
int MQTTPacket_equals(MQTTString* a, char* b);
@@ -99,6 +99,8 @@
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
