wifi.scan()function


The wifi.scan() function scans for available networks. Once completed, the found endpoints are available in the returned table.

Notes

  • The function returns immediately after starting the scan.
  • The scan process may take a few seconds to complete.

Return value

Returns the list of found endpoints, as a table. Each endpoint is a table with the following fields:
  • name: WIFI endpoint SSID
  • quality: signal quality in percent
  • secured: endpoint uses secured authentication
  • known: endpoint is already known by Windows (no authentication needed)

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