|
|
@@ -29,7 +29,7 @@
|
|
|
#include "esp_log.h"
|
|
|
#include "mqtt_client.h"
|
|
|
|
|
|
-static const char *TAG = "MQTTWS_EXAMPLE";
|
|
|
+static const char *TAG = "mqttws_example";
|
|
|
|
|
|
static void log_error_if_nonzero(const char *message, int error_code)
|
|
|
{
|
|
|
@@ -123,12 +123,12 @@ void app_main(void)
|
|
|
ESP_LOGI(TAG, "[APP] IDF version: %s", esp_get_idf_version());
|
|
|
|
|
|
esp_log_level_set("*", ESP_LOG_INFO);
|
|
|
- esp_log_level_set("MQTT_CLIENT", ESP_LOG_VERBOSE);
|
|
|
- esp_log_level_set("MQTT_EXAMPLE", ESP_LOG_VERBOSE);
|
|
|
- esp_log_level_set("TRANSPORT_BASE", ESP_LOG_VERBOSE);
|
|
|
- esp_log_level_set("TRANSPORT_WS", ESP_LOG_VERBOSE);
|
|
|
- esp_log_level_set("TRANSPORT", ESP_LOG_VERBOSE);
|
|
|
- esp_log_level_set("OUTBOX", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("mqtt_client", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("mqtt_example", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("transport_base", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("transport_ws", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("transport", ESP_LOG_VERBOSE);
|
|
|
+ esp_log_level_set("outbox", ESP_LOG_VERBOSE);
|
|
|
|
|
|
ESP_ERROR_CHECK(nvs_flash_init());
|
|
|
ESP_ERROR_CHECK(esp_netif_init());
|