|  Developer
Updated on November 19, 2021

hub.network.wifi.scan.progress

  • Sends information about wifi scan process
Edit
Field Type Required Description
interfaceId string + The network interface type (type: wifi)
status enum + Progress of the scan. Can be ‘started’, ‘process’ (ongoing), ‘finished’ or ‘failed’.
error object If ‘status’ = ‘failed’ then this field describes the type of error.
networks JsonArray If ‘status’ = ‘process’ or ‘finished’ then this field shows details of all networks found thus far. There may be multiple networks listed here.
networks.ssid string +

The Service Set Identifier (SSID) of the device that provides the wireless local area network (WLAN). The SSID uniquely identifies the wireless network.

This device is also known as an access point (AP). There may be multiple APs in a WLAN. The BSSID (below) identifies the exact device which provides the network.

networks.bssid string The MAC address of the AP/SSID listed above.
networks.security string + States the type of security enabled on the network (if any). Example results – ‘open’, ‘wep’, ‘wpa-psk’, ‘wpa2-psk’.
networks.rssi integer

Received Signal Strength Indicator – the strength of the signal provided by the wireless AP.

An rssi closer to 0 is stronger and closer to -100 is weaker.

Edit
Code Message Data Reason (optional)
Scan error message
Edit
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.wifi.scan.progress",
    "result": {
        "interfaceId": "wlan0",
        "status": "process",
        "networks": [
            {
                "ssid": "TestWIFI",
                "bssid" : "",
                "security": "open",
                "rssi": 0
            },
            {
                "ssid": "eZLO_House",
                "bssid" : "",
                "security": "wpa2-psk",
                "rssi": 0
            }
        ]
    }
}				
			
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.wifi.scan.progress",
    "result": {
        "error": {
            "code": -32500,
            "data": "network.wifi.scan.failed",
            "message": "Wifi scan failed",
            "reason": "command failed: No such device (-19)"
        },
        "interfaceId": "ra0000000",
        "status": "failed"
    }
}