updated docs and example to recently exported MQTT result codes

This commit is contained in:
Sergio R. Caprile committed 2022-07-04 14:32:12 -03:00
1 parent e4a5296fbf
commit 16e90c3082
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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:
...