I'm considering switching from NodeMCU to Arduino ESP, due to memory management.
Before that, I have a capital question: is it possible to list AP with hidden ssid?
I've tried this code: https://www.arduino.cc/en/Tutorial/ScanNetworks, and it doesn't list all the AP, just the APs with ssid.
What would be the equivalent of the NodeMCU code:
function listap(t) -- (SSID : Authmode, RSSI, BSSID, Channel)
print("\n\t\t\tSSID\t\t\t\t\tBSSID\t\t\t RSSI\t\tAUTHMODE\t\tCHANNEL")
for bssid,v in pairs(t) do
local ssid, rssi, authmode, channel = string.match(v, "([^,]+),([^,]+),([^,]+),([^,]*)")
print(string.format("%32.s",ssid).."\t"..bssid.."\t "..rssi.."\t\t"..authmode.."\t\t\t"..channel)
end
end
scan_cfg={}
scan_cfg.show_hidden=1
wifi.sta.getap(scan_cfg, 1, listap)