Hi,
I've found that it is not possible to make an asynchronous wifi scan _and_ a connect attempt in parallel. The reason is that the connect does a scan internally. So depending on the order of the call (scan before connect -> scan fails. connect before scan -> connect fails) one of both calls fails.
I need to do that asynchronously, because after a wakeup a scan usually takes 2.5 secs, a connect can take up to 10 secs. I wanted to save time by letting them run in parallel.
If the connect does a scan, is it possible to participate?
Wifi scan and connect in parallel
Re: Wifi scan and connect in parallel
Postby neilyoung » Tue Jan 10, 2017 2:10 am
As an additional information:
If the scan is started, once the callbacks report "CONNECTED" state (usually then an internal scan should be finished), the status callback immediately reports "DISCONNECTED" and connect fails.
Bad design, IMHO
If the scan is started, once the callbacks report "CONNECTED" state (usually then an internal scan should be finished), the status callback immediately reports "DISCONNECTED" and connect fails.
Bad design, IMHO
Who is online
Users browsing this forum: No registered users and 60 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
-
- All times are UTC+08:00
- Top
- Delete all board cookies
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.