esp8266 / esp8266/Arduino

ESP8266 MultiWifi run blocks the code execution, can it be run asynchronously?

Open
#8,489 14 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.