mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
updated docs and example to recently exported MQTT result codes
This commit is contained in:
1 parent
e4a5296fbf
commit
16e90c3082
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1911,7 +1911,7 @@ Usage example:
|
||||
```c
|
||||
// Iterate over all MQTT frames contained in buf, len
|
||||
struct mg_mqtt_message mm;
|
||||
while ((mg_mqtt_parse(buf, len, &mm)) == 0) {
|
||||
while ((mg_mqtt_parse(buf, len, &mm)) == MQTT_OK) {
|
||||
switch (mm.cmd) {
|
||||
case MQTT_CMD_CONNACK:
|
||||
...
|
||||
|
||||
Reference in new issue
Block a user