mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Mqtt: parsing auth info in the connect message
PUBLISHED_FROM=017e707ea2bd7b1d1972fbb92e5d98c74e17e9d0
This commit is contained in:
1 parent
a3e2a41834
commit
3a8f47befd
5 files changed
+94
-61
No files matched your search
+14
-2
@@ -3624,11 +3624,23 @@ int mg_http_create_digest_auth_header(char *buf, size_t buf_len,
|
||||
|
||||
struct mg_mqtt_message {
|
||||
int cmd;
|
||||
struct mg_str payload;
|
||||
int qos;
|
||||
struct mg_str topic;
|
||||
struct mg_str payload;
|
||||
|
||||
uint8_t connack_ret_code; /* connack */
|
||||
uint16_t message_id; /* puback */
|
||||
char *topic;
|
||||
|
||||
/* connect */
|
||||
uint8_t protocol_version;
|
||||
uint8_t connect_flags;
|
||||
uint16_t keep_alive_timer;
|
||||
struct mg_str protocol_name;
|
||||
struct mg_str client_id;
|
||||
struct mg_str will_topic;
|
||||
struct mg_str will_message;
|
||||
struct mg_str user_name;
|
||||
struct mg_str password;
|
||||
};
|
||||
|
||||
struct mg_mqtt_topic_expression {
|
||||
|
||||
Reference in new issue
Block a user