-
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
-
-
Hello,
I'm having trouble with this neat little board.WiFi is not working at all neither in AP nor STA mode. I have tried both v91.545 and v91 stable - getting the exact same result. Wifi works just fine using esp-open-rtos under 80 and 160 Mhz
Attempting to connect to my router:
var wifi = require("Wifi"); wifi.connect("simple", {password:"12345678"}, function(err) { console.log("connected? err=", err, "info=", wifi.getIP()); });
It says "no_ap_found" and callback does not execute. getDetails() does say "connecting" for a brief moment.
>wifi.getDetails() ={ "status": "connecting", "ssid": "simple", "password": "12345678", "rssi": 0, "savedSsid": null } > >wifi.getDetails() ={ "status": "no_ap_found", "ssid": "simple", "password": "12345678", "rssi": 0, "savedSsid": null } > >wifi.getStatus() ={ "mode": "sta+ap", "station": "no_ap_found", "ap": "enabled", "phy": "11n", "powersave": "ps-poll", "savedMode": "off" }
Strangest of all, AP callback does execute, but the actual AP is not visible by any device.
>wifi.startAP("test", {authMode:"open", channel:6}, function() { console.log("started AP."); }); =undefined started AP. > >wifi.getAPDetails() ={ "status": "enabled", "authMode": "open", "hidden": false, "maxConn": 4, "ssid": "test", "password": "", "savedSsid": null, "stations": [ ] }
Flashed with:
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
I've tried "cpuFrequency": 80 too.
>esp8266.getState(); ={ "sdkVersion": "2.0.0(5a875ba)", "cpuFrequency": 160, "freeHeap": 10224, "maxCon": 10, "flashMap": "4MB:512/512", "flashKB": 4096, "flashChip": "0xef 0x4016" }
I am hoping this is only me doing something wrong or not doing something :D Will try out some older BINs and report back. Please advise on what else we could try.
I really appreciate your effort in this project - it is one of very few I donated to.
The bastard:
32Mb, $5
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.