Notes
- The function returns immediately after starting the scan.
- The scan process may take a few seconds to complete.
wifi.scan()function
The wifi.scan() function scans for available networks. Once completed, the found endpoints are available in the returned table.
Return value
Returns the list of found endpoints, as atable. Each endpoint is a table with the following fields: Example
print("Scanning WIFI endpoints...")
for endpoint in each(wifi.scan()) do
print("----- Wifi endpoint ".. endpoint.name)
print("signal :", endpoint.signal)
print("secured :", endpoint.secured)
print("known : ", endpoint.known)
end