feat: Update esp_local_ctrl example for ESP32P4

This commit is contained in:
Harshit Malpani
2024-02-15 11:11:06 +05:30
parent 2df1ba8535
commit bae89606c3
4 changed files with 15 additions and 13 deletions

View File

@@ -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");