Wifi Connect / Disconnect detection
Posted: Mon Mar 18, 2019 2:43 pm
Hi there,
I'm having a hard time to understand some details about Wifi connections when it comes to state awareness.
Some context :
I have a client UDP connection (Wifi STA) that bombards an UDP server (Wifi AP) on two ESP32s, at quite a steady rate (50Hz) everything works fine so far, I'd say a little too well actually .. In order to toughen the client / server relation I'm testing some corner situations : press a hard reset on the server (server reboots, restarts Wifi + UDP), and ... nothing, the client keeps running straight spurring data in the void. If I touch nothing it takes a full 5 minutes to the client to even realize it was like shouting in outer space
I changed the CONFIG_IP_LOST_TIMER_INTERVAL value to 1 in the sdkconfig file (was 120), but that doesn't help, the client doesn't even notice the connection is toast ...
Is there some thing I can do in order to improve the awareness rate on Wifi state ?
Am I overlooking something obvious ?
Thanks for any advice / pointer ...
Lo.
I'm having a hard time to understand some details about Wifi connections when it comes to state awareness.
Some context :
I have a client UDP connection (Wifi STA) that bombards an UDP server (Wifi AP) on two ESP32s, at quite a steady rate (50Hz) everything works fine so far, I'd say a little too well actually .. In order to toughen the client / server relation I'm testing some corner situations : press a hard reset on the server (server reboots, restarts Wifi + UDP), and ... nothing, the client keeps running straight spurring data in the void. If I touch nothing it takes a full 5 minutes to the client to even realize it was like shouting in outer space
I changed the CONFIG_IP_LOST_TIMER_INTERVAL value to 1 in the sdkconfig file (was 120), but that doesn't help, the client doesn't even notice the connection is toast ...
Is there some thing I can do in order to improve the awareness rate on Wifi state ?
Am I overlooking something obvious ?
Thanks for any advice / pointer ...
Lo.