Can an app try to connect in the middle of a scan?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

[WICED-SDK-2.2.1, BCM43362]

Our app has an autoconnect capability such that if a prior saved Wi-Fi network matches a previously-saved favorite network during scan result processing, the network manager automatically attempts to connect to the network.

As implemented today, this could occur while in the middle of iterating through scan results.

By and large, it appears to work; however, is this valid and allowed API behavior for the 43662 or WICED WWD?

0 Likes
1 Reply
Anonymous
Not applicable
There is no particular reason why this shouldnt work. The WICED code does not have any dependency between the scan

and join commands however the WLAN may not give you the same scan results or it may simply wait internally until the scan

is finished.

As a disclaimer: This behaviour is not currently explicitly tested.
0 Likes