Left for archival purposes.

User avatar
By Pigs Fly
#5858 Disregard, I see this has been done, more or less. Would have been nice to have the (v) info presented in an easier to access format, but it will do fine as-is. Thanks.

Code: Select all    -- print ap list
    function listap(t)
      for k,v in pairs(t) do
        print(k.." : "..v)
      end
    end
    wifi.sta.getap(listap)



Results in:

ssid : auth-type, rssi, mac, channel

User avatar
By sjfaustino
#12756 I know it's digging a bit after all this time, but it might help someone:

Code: Select all -- print ap list
    function listap(t)
      for ssid,v in pairs(t) do
        enc, rssi, bssid, chan = string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)")
        print(ssid,enc,rssi,bssid,chan)
      end
    end
    wifi.sta.getap(listap)