Fix #1394 - mg_mqtt_sub(). Add MG_EV_OPEN, too.

This commit is contained in:
Sergey Lyubka committed 2021-11-01 16:20:00 +00:00
1 parent 2016586475
commit 423aaa492c
7 files changed
+64 -47

No files matched your search

-4
View File
@@ -18,10 +18,6 @@
#define MQTT_CMD_PINGRESP 13
#define MQTT_CMD_DISCONNECT 14
#define MQTT_QOS(qos) ((qos) << 1)
#define MQTT_GET_QOS(flags) (((flags) &0x6) >> 1)
#define MQTT_SET_QOS(flags, qos) (flags) = ((flags) & ~0x6) | ((qos) << 1)
struct mg_mqtt_opts {
struct mg_str user; // Username, can be empty
struct mg_str pass; // Password, can be empty