mqtt: support for BEFORE_CONNECT event in idf

Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages
This commit is contained in:
David Cermak 2018-11-16 10:42:58 +00:00
parent 3c94b6e10a
commit 13bf307c85
6 changed files with 16 additions and 1 deletions

@ -1 +1 @@
Subproject commit a7b1cea5b3e246298607a8c64447765297626f36 Subproject commit f08f3b678717865234637164a29ed3a63e756ca7

View file

@ -112,6 +112,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
case MQTT_EVENT_ERROR: case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR"); ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
break; break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
} }
return ESP_OK; return ESP_OK;
} }

View file

@ -114,6 +114,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
case MQTT_EVENT_ERROR: case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR"); ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
break; break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
} }
return ESP_OK; return ESP_OK;
} }

View file

@ -69,6 +69,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
case MQTT_EVENT_ERROR: case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR"); ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
break; break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
} }
return ESP_OK; return ESP_OK;
} }

View file

@ -66,6 +66,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
case MQTT_EVENT_ERROR: case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR"); ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
break; break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
} }
return ESP_OK; return ESP_OK;
} }

View file

@ -112,6 +112,9 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
case MQTT_EVENT_ERROR: case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR"); ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
break; break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
} }
return ESP_OK; return ESP_OK;
} }