ayushsharma82 / AsyncElegantOTA

Deprecated: Perform OTAs for ESP8266 / ESP32 Elegantly! Uses AsyncWebServer
MIT License
563 stars 153 forks source link

Not working with FreeRtos tasks #86

Open italocjs opened 2 years ago

italocjs commented 2 years ago

The example alone works really well, but as soon as i add the code to my program (which uses three freertos tasks, on both cores) it no longer responds to ping or webpage, any ideas on how to fix this?

No erros were reported, the IP address is being shown on the serial terminal, but no web answers.

ayushsharma82 commented 2 years ago

Without really knowing the code I can only point to these solutions:

  1. Please check if your tasks are not delaying the event loop by much, AsyncWebServer depends on a FreeRTOS task as well.

  2. Make sure you are calling server.begin();

Let us know if you find the cause or solution.