|
|
@ -106,10 +106,10 @@ bool XD0MQTT::begin(void) { |
|
|
|
mqtt_cfg.password = MQTT_PASSWORD; |
|
|
|
mqtt_cfg.user_context = (void*)this; |
|
|
|
|
|
|
|
ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size()); |
|
|
|
Serial.printf("BROKER URI: %s\n", MQTT_BROKER_URI); |
|
|
|
Serial.printf("MQTT USERNAME: %s\n", MQTT_USERNAME); |
|
|
|
Serial.printf("MQTT PASSWORD: %s\n", MQTT_PASSWORD); |
|
|
|
ESP_LOGD(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size()); |
|
|
|
ESP_LOGI(TAG, "BROKER URI: %s\n", MQTT_BROKER_URI); |
|
|
|
ESP_LOGI(TAG, "MQTT USERNAME: %s\n", MQTT_USERNAME); |
|
|
|
ESP_LOGI(TAG, "MQTT PASSWORD: %s\n", MQTT_PASSWORD); |
|
|
|
client = esp_mqtt_client_init(&mqtt_cfg); |
|
|
|
//esp_mqtt_client_register_event(client, ESP_EVENT_ANY_ID, mqtt_event_handler, client);
|
|
|
|
esp_mqtt_client_start(client); |
|
|
|