less verbose default mqtt debug log
This commit is contained in:
parent
dbc6c0dfaa
commit
5e68618747
|
|
@ -172,7 +172,7 @@ static void mqtt_system_event_handler(int idx, void *handler_args, esp_event_bas
|
||||||
void *event_data)
|
void *event_data)
|
||||||
{
|
{
|
||||||
xSemaphoreTake(xSemaphoreMQTTHandle, pdMS_TO_TICKS(1000));
|
xSemaphoreTake(xSemaphoreMQTTHandle, pdMS_TO_TICKS(1000));
|
||||||
#if MQTT_DEBUG_MODE > 0
|
#if MQTT_DEBUG_MODE > 1
|
||||||
ESP_LOGI(TAG, "Event dispatched from event loop base=%s, event_id=%d", base, (int )event_id);
|
ESP_LOGI(TAG, "Event dispatched from event loop base=%s, event_id=%d", base, (int )event_id);
|
||||||
#endif
|
#endif
|
||||||
esp_mqtt_event_handle_t event = event_data;
|
esp_mqtt_event_handle_t event = event_data;
|
||||||
|
|
@ -221,13 +221,13 @@ static void mqtt_system_event_handler(int idx, void *handler_args, esp_event_bas
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case MQTT_EVENT_PUBLISHED:
|
case MQTT_EVENT_PUBLISHED:
|
||||||
#if MQTT_DEBUG_MODE > 0
|
#if MQTT_DEBUG_MODE > 1
|
||||||
ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id);
|
ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case MQTT_EVENT_DATA:
|
case MQTT_EVENT_DATA:
|
||||||
|
|
||||||
#if MQTT_DEBUG_MODE > 0
|
#if MQTT_DEBUG_MODE > 1
|
||||||
ESP_LOGI(TAG, "MQTT_EVENT_DATA, client %d", idx);
|
ESP_LOGI(TAG, "MQTT_EVENT_DATA, client %d", idx);
|
||||||
#endif
|
#endif
|
||||||
//Check if topic is SYSTEM and pass data to handler
|
//Check if topic is SYSTEM and pass data to handler
|
||||||
|
|
@ -247,7 +247,7 @@ static void mqtt_system_event_handler(int idx, void *handler_args, esp_event_bas
|
||||||
ServiceDataHandler(&M);
|
ServiceDataHandler(&M);
|
||||||
SysServiceMQTTSend(M.outputDataBuffer, strlen(M.outputDataBuffer), idx);
|
SysServiceMQTTSend(M.outputDataBuffer, strlen(M.outputDataBuffer), idx);
|
||||||
free(respbuf);
|
free(respbuf);
|
||||||
#if(MQTT_DEBUG_MODE > 0)
|
#if(MQTT_DEBUG_MODE > 1)
|
||||||
ESP_LOGI(TAG, "SERVICE data handler on client %d", idx);
|
ESP_LOGI(TAG, "SERVICE data handler on client %d", idx);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user