mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
feat: Update esp_local_ctrl example for ESP32P4
This commit is contained in:
@@ -39,7 +39,7 @@ void app_main(void)
|
||||
}
|
||||
ESP_ERROR_CHECK(ret);
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_LOCAL_CTRL_TRANSPORT_SOFTAP
|
||||
#ifdef CONFIG_EXAMPLE_LOCAL_CTRL_TRANSPORT_HTTP
|
||||
ESP_ERROR_CHECK(esp_netif_init());
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
|
||||
@@ -47,7 +47,7 @@ void app_main(void)
|
||||
ESP_LOGI(TAG, "Connection failed, not starting esp_local_ctrl service");
|
||||
vTaskDelay(portMAX_DELAY);
|
||||
}
|
||||
#endif /* CONFIG_EXAMPLE_LOCAL_CTRL_TRANSPORT_SOFTAP */
|
||||
#endif /* CONFIG_EXAMPLE_LOCAL_CTRL_TRANSPORT_HTTP */
|
||||
|
||||
start_esp_local_ctrl_service();
|
||||
ESP_LOGI(TAG, "esp_local_ctrl service started");
|
||||
|
Reference in New Issue
Block a user