Page 1 of 2
WIFI Scanner Example Does Not Work
Posted:
Sun Aug 21, 2016 5:37 pm
by raintime
Copied the WIFI Scanner Example. Shortened it to the code below:
memclear
n = wifi.scan()
html "Number of network found = "
html n
Got:
Number of networks found = n
__________________________________________________________
Done...
With [DEBUG] window, noticed that under Vars, n was equal to 1, but yet the character 'n' printed. A bug...
Re: WIFI Scanner Example Does Not Work
Posted:
Tue Aug 30, 2016 7:00 am
by Markymarc35
Are you sure that your module is connected to a network?
The code you posted worked on my ESP.
Re: WIFI Scanner Example Does Not Work
Posted:
Wed Aug 31, 2016 4:40 pm
by Mmiscool
Are you using the 3.0 branch ?
Re: WIFI Scanner Example Does Not Work
Posted:
Wed Aug 31, 2016 7:26 pm
by raintime
Yes. I just tried again (right after booting) and it came up incorrectly as "n" again! I am using ESP Basic 3.0.Alpha 43. I created and saved a new program, then ran it and got the "n".
I was using Firefox. Then I switched to Chrome, tried running the new saved program again, and it gave "1" - the correct answer.
Switched back to FIrefox and tried a few different things, like creating yet another new program, but now it's always giving "1".
I can't seem to re-create the "n" result. Something funny is happening, don't know what. Will try from time to time to try to find out what conditions bring out the "n".