]> granicus.if.org Git - esp-idf/commitdiff
mqtt: support for BEFORE_CONNECT event in idf
authorDavid Cermak <cermak@espressif.com>
Fri, 16 Nov 2018 10:42:58 +0000 (10:42 +0000)
committerDavid Cermak <cermak@espressif.com>
Thu, 3 Jan 2019 08:22:24 +0000 (09:22 +0100)
Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages

components/mqtt/esp-mqtt
examples/protocols/mqtt/ssl/main/app_main.c
examples/protocols/mqtt/ssl_mutual_auth/main/app_main.c
examples/protocols/mqtt/tcp/main/app_main.c
examples/protocols/mqtt/ws/main/app_main.c
examples/protocols/mqtt/wss/main/app_main.c

index a7b1cea5b3e246298607a8c64447765297626f36..f08f3b678717865234637164a29ed3a63e756ca7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a7b1cea5b3e246298607a8c64447765297626f36
+Subproject commit f08f3b678717865234637164a29ed3a63e756ca7
index 83f0b8a306b1a780d36e131631ae3b0ec89bac4d..3be4d576697ab1bf415a12790e4c31cd27102a8b 100644 (file)
@@ -112,6 +112,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
         case MQTT_EVENT_ERROR:
             ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
             break;
+        default:
+            ESP_LOGI(TAG, "Other event id:%d", event->event_id);
+            break;
     }
     return ESP_OK;
 }
index 2ebce48b93133bf36710c0a97716f014ac71128a..62b970056a823ffe244dd9a8ece22cbc0eb869ee 100644 (file)
@@ -114,6 +114,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
         case MQTT_EVENT_ERROR:
             ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
             break;
+        default:
+            ESP_LOGI(TAG, "Other event id:%d", event->event_id);
+            break;
     }
     return ESP_OK;
 }
index 0d294bd465e9cd270296ae580027f03246411f14..ce1640adb6112dbaa1b0f993c0ca560244a35dc7 100644 (file)
@@ -69,6 +69,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
         case MQTT_EVENT_ERROR:
             ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
             break;
+        default:
+            ESP_LOGI(TAG, "Other event id:%d", event->event_id);
+            break;
     }
     return ESP_OK;
 }
index cdb0f0ab5b2a1bc13f6ab7b68623cb298dffe2cd..bcaf5c86c926400bb185398a519ca9adbb52b34e 100644 (file)
@@ -66,6 +66,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
         case MQTT_EVENT_ERROR:
             ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
             break;
+        default:
+            ESP_LOGI(TAG, "Other event id:%d", event->event_id);
+            break;
     }
     return ESP_OK;
 }
index bc1d045b56e5a42649100cd7299e2b8f5d3a27f2..12031173a7222139ad0498e4d500464370462ce5 100644 (file)
@@ -112,6 +112,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
         case MQTT_EVENT_ERROR:
             ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
             break;
+        default:
+            ESP_LOGI(TAG, "Other event id:%d", event->event_id);
+            break;
     }
     return ESP_OK;
 }