-->
Page 1 of 1

esp8266 wifi.scan ESPRUINO

PostPosted: Sun Dec 05, 2021 7:19 am
by Bukvy
Helo! Try wifi.scan :
wifi = require("Wifi");
wifi.scan(function(err,ap_list){
if (err) {
console.log("result: error: "+err+"list: "+ap_list);
return;
}
console.log("Connected!"+"result2: error: "+err+"list: "+ap_list);

Why it always returns err= empty, ap_list undefined , if there are a lot of access points around?
Espuino v2.09

Re: esp8266 wifi.scan ESPRUINO

PostPosted: Mon Feb 28, 2022 6:09 pm
by stumin
I've had the same problem with WeMos dev board. you can try Espruino on other esp8266 boards. I managed to do wifi.scan on an old NodeMcu board without problem. Give it a try.