ESP8266 MultiWifi run blocks the code execution, can it be run asynchronously?
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
I am using ESP8266 for my project, in it a do multiple operations, some of them are dependent on wifi/internet and other are not. On the latest core sdk (3.0.2), the wifi multi.run() takes 7 seconds to execute, and this is happening synchronusly, which means my code loop is blocked for a good 7 seconds. I process data incoming on the serial but this 7 second block, causes me to loose some serial data too.
Is there some way to run this asynchronously?
I call wifimulti.run() at the start of my loop. so its executed in every loop. I have made it so, that the wifi loop is only called every one minute or so, but it still blocks my code loop for 7 seconds after that minute.
Any help or guidance will be great.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.