esp_err_invalid_state 是ESP-IDF(Espressif IoT Development Framework)中的一个错误代码,表示操作处于无效状态。下面是对该错误的详细解释、常见情况、解决步骤和预防措施。 1. 什么是esp_err_invalid_state错误? esp_err_invalid_state 错误通常表示当前的操作或函数调用处于一个不期望或无效的状态。这可能是由于...
idf5.0 组件历程里的wifi连接 wifi_connect.c -->ESP_ERR_INVALID_STATEby firework » Wed Mar 22, 2023 3:37 am I (813) wifi:mode : sta (44:17:93:7c:62:70) I (813) wifi:enable tsf E (813) wifi:failed to post WiFi event=2 ret=259 ESP_ERROR_CHECK failed: esp_err_t 0x103...
ESP_LOGI(RTC_TAG,"rtc_sleep: esp_light_sleep_start failed: %s", esp_err_to_name(err));returnerr; } The problem is that esp_light_sleep_start() returns ESP_ERR_INVALID_STATE. I was able to narrow it down to the initialization of the touch controller. The wakeup pin is configured a...
Probably because it's already initialised. Many components depend on the event loop being initialised, so you should do it once early in your main initialisation. Repeated calls will return ESP_ERR_INVALID_STATE. Is there another esp_event_loop_create_default() somewhere before this wifiInit()...
ESP_LOGI(TAG, "Channel \t\t%d\n", ap_info[i].primary); } } GeSHi © Codebox Plus ExtensionMicroController Posts: 1896 Joined: Mon Oct 17, 2022 7:38 pm Location: Europe, Germany Re: ESP_ERROR_CHECK failed: esp_err_t 0x103 (ESP_ERR_INVALID_STATE) at 0x400d8148 by MicroContro...
idf5.0 组件历程里的wifi连接 wifi_connect.c -->ESP_ERR_INVALID_STATEby firework » Wed Mar 22, 2023 3:37 am I (813) wifi:mode : sta (44:17:93:7c:62:70) I (813) wifi:enable tsf E (813) wifi:failed to post WiFi event=2 ret=259 ESP_ERROR_CHECK failed: esp_err_t 0x103...
Re: ESP_ERROR_CHECK failed: esp_err_t 0x103 (ESP_ERR_INVALID_STATE) at 0x400d8148 PostbyMicroController»Tue May 09, 2023 8:35 am Code:Select all while(1) { ... ESP_ERROR_CHECK(esp_wifi_deinit() ); ... } You're disconnecting/de-init'ing inside a loop. WiFi is already de...
idf5.0 组件历程里的wifi连接 wifi_connect.c -->ESP_ERR_INVALID_STATE 1 post • Page1of1 firework Posts:1 Joined:Wed Mar 22, 2023 3:30 am Postbyfirework»Wed Mar 22, 2023 3:37 am I (813) wifi:mode : sta (44:17:93:7c:62:70) ...