mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Fix value of MG_MQTT_DUP
PUBLISHED_FROM=de1772bd6ea01f3dc467ceebb3b2af5cbe8eb240
This commit is contained in:
1 parent
70dc6d8dc9
commit
bc15e9ce9a
6 files changed
+64
-1099
No files matched your search
+1
-1
@@ -101,10 +101,10 @@ struct mg_mqtt_proto_data {
|
||||
|
||||
/* Message flags */
|
||||
#define MG_MQTT_RETAIN 0x1
|
||||
#define MG_MQTT_DUP 0x4
|
||||
#define MG_MQTT_QOS(qos) ((qos) << 1)
|
||||
#define MG_MQTT_GET_QOS(flags) (((flags) &0x6) >> 1)
|
||||
#define MG_MQTT_SET_QOS(flags, qos) (flags) = ((flags) & ~0x6) | ((qos) << 1)
|
||||
#define MG_MQTT_DUP 0x8
|
||||
|
||||
/* Connection flags */
|
||||
#define MG_MQTT_CLEAN_SESSION 0x02
|
||||
|
||||
Reference in new issue
Block a user