citizen12123
Member since Apr 2017 • Last active Apr 2017Most recent activity
-
- 28 comments
- 15,088 views
-
Hello @MaBe,
I did and it does the same thing - returns an empty array.>require("Wifi").scan(function(arrayOfAcessPoints){print(arrayOfAcessPoints);}); =undefined [ ]
-
-
Enabled WiFi logging
>esp8266.printLog() 89478> wifi.on(#ondisconnected) 89575> reconnect 91698> scandone 91699> no simple found, reconnect after 1s 91699> Wifi event: disconnected from ssid simple, reason beacon_timeout (201) status=no_ap_found 91702> wifi.on(#ondisconnected) 91799> reconnect
Nothing terribly useful. Just checked Micropython on this board - WiFi works great.
-
@Ollie do you mean shorting the antenna connector? Tried that out of desperation and also flashed espruino_1v85_esp8266_combined_512.bin - issue remains.
-
Yes - the WiFi details are correct. "simple" is the actual SSID and also is the password. I did try your code snippet.
I would like to point out, that WiFi credentials get set properly:
>wifi.getDetails() ={ "status": "no_ap_found", "ssid": "simple", "password": "12345678", "rssi": 0, "savedSsid": null }
Looks like it's unable to use the radio at all somehow.
>wifi.scan(function(ap){print(ap);}); =undefined [ ] >var esp8266 = require("ESP8266"); =function () { [native code] } >esp8266.printLog() 292141> reconnect 294267> scandone 294267> no simple found, reconnect after 1s 294367> reconnect 296493> scandone 296493> no simple found, reconnect after 1s 296593> reconnect 298717> scandone 298717> no simple found, reconnect after 1s 298817> reconnect =undefined >
Oh dear what a riddle.
-
@Wilberforce I have added the antenna - getting the same result. esp-open-rtos works fine with and without the antenna though.
@CrashingDutchman It's being powered through USB out of my laptop - same power source as with esp-open-rtos. Just tried powering it with 12V 1A adapter - didn't see any improvement. Also erased and re-flashed using the new power source.
What else can we try? :D
-
Here's what it does after wifi.connect():
>esp8266.printLog() 988179> reconnect 990305> scandone 990305> no simple found, reconnect after 1s 990405> reconnect 992531> scandone 992531> no simple found, reconnect after 1s 992632> reconnect 994758> scandone 994758> no simple found, reconnect after 1s 994858> reconnect =undefined
At least it's trying... Okay.
>wifi.scan(function(ap){print(ap);}); =undefined [ ] > >esp8266.printLog() 74724> mode : sta(5c:cf:7f:de:6a:74) 74725> add if0 76851> scandone =undefined
-
Thank you everybody for your time trying to help out.
What I mean to say here is that esp-open-rtos works just fine at this moment. As soon as I flash it with Espruino I encounter the wifi problem.
@MaBe I've already tried changing to b/g/n - doesn't improve anything.