Fix #1434 - set will QoS in CONNECT message correctly, and rename qos -> will_qos in struct mg_mqtt_opts

This commit is contained in:
Sergey Lyubka committed 2021-12-23 11:00:18 +00:00
1 parent f29807aad8
commit 26a97ec36c
8 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -333,8 +333,8 @@ static void test_mqtt(void) {
// Set params
memset(buf, 0, sizeof(buf));
memset(&opts, 0, sizeof(opts));
opts.qos = 1;
opts.clean = true;
opts.will_qos = 1;
opts.will_retain = true;
opts.keepalive = 20;
opts.client_id = mg_str("mg_client");