Closed vbshightime closed 5 years ago
I am not frequently getting this exception. But sometimes when the esp32 is getting an inadequate power supply or it is getting warm the exception occurs. I have no clue why this is happening. One more thing, you can see it in code that I have configured a static IP but still, ESP32 connects to DHCP or it's default IP (192.168.4.1). I have resolved this issue by applying this fix to my code
while(!(WiFi.softAPIP()== ap_local_IP)){
WiFi.softAPConfig(ap_local_IP, ap_gateway, ap_subnet);
}
Serial.println(WiFi.softAP(ssidAP) ? "soft-AP setup": "Failed to connect");
Serial.println(WiFi.softAPIP());`
yeah it showed some effective results but I'm still getting this exception once a while
I also ran into this problem. My solution was to call WiFi.softAP(WIFI_SSID, WIFI_PASSWORD)
and then WiFi.softAPConfig(local_IP, gateway, netmask)
.
Changing the sequence will reproduce the exception on my system.
Thanks for your suggestion @siochs. I did the same thing to resolve my problem. Now I am not getting this exception
I'm running into the same issue on what appears to be a different version of the idf (line numbers are changed but similar). Changing the order of the softAP andn softAPConfig calls makes no difference.
Decoded backtrace:
0x4010c7a2: handle_dhcp at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/apps/dhcpserver/dhcpserver.c line 1031
0x40119281: udp_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/udp.c line 401
0x4011cc19: ip4_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/ipv4/ip4.c line 740
0x40121e4e: ethernet_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/netif/ethernet.c line 184
0x4010f77f: tcpip_thread at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/api/tcpip.c line 135
0x4008f2ad: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 143
Are you frequently getting this issue. Sometimes the device tries to connect to the DHCP IP or it's default IP(192.168.4.1) even when you have configured the AP. S if changing the sequence doesn't works then try WiFi.disconnect() first and then insert following check
while(!(WiFi.softAPIP()== ap_local_IP)){
WiFi.softAPConfig(ap_local_IP, ap_gateway, ap_subnet);
}
Serial.println(WiFi.softAP(ssidAP) ? "soft-AP setup": "Failed to connect");
Serial.println(WiFi.softAPIP());
Are you frequently getting this issue. Sometimes the device tries to connect to the DHCP IP or it's default IP(192.168.4.1) even when you have configured the AP. S if changing the sequence doesn't works then try WiFi.disconnect() first and then insert following check
while(!(WiFi.softAPIP()== ap_local_IP)){ WiFi.softAPConfig(ap_local_IP, ap_gateway, ap_subnet); } Serial.println(WiFi.softAP(ssidAP) ? "soft-AP setup": "Failed to connect"); Serial.println(WiFi.softAPIP());
i am still getting this error. i already applied thes lines of code but this didn't solve my problem
Hardware:
Board: ESP 32 DEVKIT v1 Core Installation/update date: 21/10/2018 IDE name: Arduino IDE Flash Frequency: 80Mhz Upload Speed: 9600
Computer OS: Windows 10/7
Description:
I have set up an Acess point on ESP 32. It is successfully configuring. But, while trying to connect to access point I am getting Guru meditation exception
Sketch:
Debug Messages:
Decoded Messages:
Webform: