I flashed the default firmware from NodeMcu and whatever i want to run i get
stdin:1: '=' expected near 'something
NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
Here is an example :
> wifi.setmode(wifi.STATION)
print ap list
function listap(t)
for ssid,v in pairs(t) do
authmodstdin:1: '=' expected near 'ap'
> e, rssi, bssid, channel =
string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)")
print(ssid,authmode,rssi,bssid,channel)
end
end
wifi.sta.getap(listap)
stdin:1: bad argument #1 to 'match' (string expected, got nil)
>
Anyone could help with this as i've been reviewing all online information and flashed different builds but i get the same issue