PsychicHttp icon indicating copy to clipboard operation
PsychicHttp copied to clipboard

starting the HTTP listener before the network (wifi, eth) is enabled will crash the ESP32

Open hoeken opened this issue 2 years ago • 2 comments

reported by @proddy

hoeken avatar Dec 23 '23 14:12 hoeken

I'm just starting out testing which server framework to use (PsychicHTTP is the winner so far), so I haven't had a chance to test this yet; however, in case it is already known, would this issue also affect the circumstances when wifi is disconnected to change connections?

Chris--A avatar Dec 29 '23 05:12 Chris--A

it should be fine, as long as the WiFi.mode() has been called once before server.listen(). This is because WiFi.mode calls IDF's esp_wifi_start(). Any WiFi.begin()'s or reconnect code can safely happen afterwards.

proddy avatar Dec 29 '23 09:12 proddy

Fixed

hoeken avatar Aug 10 '24 18:08 hoeken