thanks for reply, I guess is a link problem with router. But why? if I change
to
this is the wifi config i have in code:
Code: Select all
ESP_ERROR_CHECK(esp_netif_init()); // TCP/IP initiation s1.1
ESP_ERROR_CHECK(esp_event_loop_create_default()); // event loop s1.2
my_staif = esp_netif_create_default_wifi_sta(); // WiFi station s1.3
wifi_init_config_t wifi_initiation = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&wifi_initiation)); // s1.4
// 2 - Wi-Fi Configuration Phase
esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, wifi_event_handler, NULL);
esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, wifi_event_handler, NULL);
wifi_config_t wifi_configuration = {
.sta = {
.ssid = "",
.password ="",
.threshold.authmode = WIFI_AUTH_WPA2_PSK,
}
};
strcpy((char*)wifi_configuration.sta.ssid,SSID);
strcpy((char*)wifi_configuration.sta.password,PASS);
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_configuration));//change STA to AP
ESP_ERROR_CHECK(esp_wifi_start());
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));//change STA to AP
ESP_ERROR_CHECK(esp_wifi_connect());
esp_wifi_get_ps(0);
where SSID and PASS are in different file, but this code works in the dedvelopment board esp32 wroom. Now in the custom board with the esp32E just jump to panic.
Could thi be a problem with the router? I enabled the wifi debugging but can't see anything. The esp32E module somehow is not able to link with the router.