WiFi AP disappeared suddenly while using HTTP Server

VadymOstanin
Posts: 1
Joined: Thu Sep 04, 2025 10:11 am

Re: WiFi AP disappeared suddenly while using HTTP Server

Postby VadymOstanin » Thu Sep 04, 2025 10:20 am

I had the same issue, and
it was solved by calling "yield();" or "taskYIELD();" in webserver' handlers and every place in code where long work may be. "taskYIELD();" say to scheduler to switch work from your code to some other task, and specially WiFi, for short period of time. Otherwise if your code will block WiFi for long period of time, than WiFi will not work.

Ritesh
Posts: 1395
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: WiFi AP disappeared suddenly while using HTTP Server

Postby Ritesh » Mon Sep 08, 2025 10:10 am

I had the same issue, and
it was solved by calling "yield();" or "taskYIELD();" in webserver' handlers and every place in code where long work may be. "taskYIELD();" say to scheduler to switch work from your code to some other task, and specially WiFi, for short period of time. Otherwise if your code will block WiFi for long period of time, than WiFi will not work.
Thanks for sharing your valuable feedback accordingly.

I agreed on your point that Wi-Fi will stuck into long time and we need to handle proper synchronization accordingly from our application code.

We have already managed it with new ESP IDF as well into our application side.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 7 guests