Accessor: services/WiFiScan

services/WiFiScan

Obtain a scan of nearby WiFi networks.

The output is in the form below:

  networks = [
       {   "level": signal_level, // raw RSSI value
           "SSID": ssid, // SSID as string, with escaped double quotes: "\"ssid name\""
           "BSSID": bssid // MAC address of WiFi router as string
           "frequency": frequency of the access point channel in MHz
           "capabilities": capabilities // Describes the authentication, key management, and encryption schemes supported by the access point.
       }
   ]
Version:
  • $$Id: swarmlet.js 1502 2017-04-17 21:34:03Z cxh $$
Author:
  • Matt Weber
Source:
Inputs:
Name Type Description
trigger Initiates a WiFiScan.
Outputs:
Name Type Description
wifiData The list of networks obtained from the wifi-scanner module. The output is a JSON array of objects shown above.