I build a circuit that scans for available APs in the area. The device powers up, does the scan, stores the info and powers down.
I'm struggling to get the AT+CWLAP command to work reliably.
When it works, it keeps on working during repeated attempts and returns the info of available APs in the area.
When it's not working the command only returns OK.
When it does not work after a reset, I set the CWMODE to 3 and back to 1 and that sometimes gets it to work.
It looks like it works a lot beter in mode 3 than in mode 1.
I'm using a ESP8266EX with SDK 1.5.0
I used to issue:
AT
ATE0
AT+CWMODE_CUR = 1
AT+CWLAP
The procedure that looks like it might work beter
AT
ATE0
AT+CWMODE_CUR = 3
AT+CWLAP
Could you please provide me the prescribe procedure to do a network scan?
Is there a minimum time to wait after power up before doing a scan?
Should it always work in mode 1?
Thank you,
JanStatistics: Posted by jancilliers — Fri Jul 01, 2016 6:07 pm
]]>