mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-04 15:09:08 +00:00
idf mqtt ssl
This commit is contained in:
@@ -121,7 +121,7 @@ static void mqtt_app_start(void)
|
||||
|
||||
ESP_LOGI(TAG, "[APP] Free memory: %" PRIu32 " bytes", esp_get_free_heap_size());
|
||||
esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg);
|
||||
/* The last argument may be used to pass data to the event handler, in this example mqtt_event_handler */
|
||||
/* The last argument may be used to pass data to the event handler mqtt_event_handler */
|
||||
esp_mqtt_client_register_event(client, ESP_EVENT_ANY_ID, mqtt_event_handler, NULL);
|
||||
esp_mqtt_client_start(client);
|
||||
}
|
||||
|
Reference in New Issue
Block a user