I'm getting out of ideas so I'd appreciate if anyone can give me some pointers -
on 2.0.0 stable with
ESP8266WebServer httpServer = ESP8266WebServer(80);
WiFi.mode( WIFI_AP );
loop() { httpServer.handleClient(); }
ESP's webserver is accessible for about 5-10 minutes, after that no response. Other ESP code parts itself happily work the whole time. My connection path is ESP <-> ZTE WiFi router <-> PC.
Sometimes I do get following -
state: 5 -> 2 (6c0)
rm 0
pm close 7 0 0/1127576013
reconnect
state: 2 -> 0 (0)
f -180, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
pm open phy_2,type:2 0 0
cnt
connected with MozzWiFi, channel 1
dhcp client start...
ip:192.168.44.106,mask:255.255.255.0,gw:192.168.44.1
state: 5 -> 2 (6c0)
rm 0
pm close 7 0 0/618734334
reconnect
state: 2 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
pm open phy_2,type:2 0 0
cnt
connected with MozzWiFi, channel 1
dhcp client start...
ip:192.168.44.106,mask:255.255.255.0,gw:192.168.44.1
but not always. What code I can use to prevent this problem ? Bigger hammer ?
This problem is only in STA mode, if I change ESP to AP mode webserver works with no problems for ages.
TIA,
--
Mozz