WifiAround - WIFI Information Around the Device - Imou Open Platform
wifiAround: WIFI information around the device
Function details
Get WIFI information around the device.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/wifiAround
Minimum permissions required for sub-account token request
"Permission":"Config" "Resource":"dev:serial number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Device serial number |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"bc818d06647ed18e0740babf9ae6b55d",
"time":1603365887,
"nonce":"a7cfc219-4883-4d3b-aa86-b9b1b4db4eb7"
},
"id":"37c233a4-84f3-4265-be99-78e4d3370bae",
"params":{
"deviceId":"TESTQWERXXXX",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | ||
|---|---|---|---|---|
| enable | Boolean | Whether wifi is turned on | ||
| wLan | ssid | String | SSID, hotspot ID | |
| bssid | String | BSS ID, usually a MAC address | ||
| linkStatus | Integer | Connection status, 0: not connected, 1: connecting, 2: connected | ||
| auth | String | Authentication mode: OPEN, WEP, WPA/WPA2 PSK, WPA/WPA2 | ||
| intensity | Integer | Strength, 0 is the weakest, 5 is the strongest | ||
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"wLan":[
{
"linkStatus":2,
"intensity":5,
"auth":"WPA/WPA2 PSK",
"bssid":"12:34:56:78:90:12",
"ssid":"TP_DiamondC"
},
{
"linkStatus":0,
"intensity":5,
"auth":"OPEN",
"bssid":"11:34:56:78:90:12",
"ssid":"TP_PHEGDA"
},
{
"linkStatus":0,
"intensity":5,
"auth":"WPA/WPA2",
"bssid":"12:34:56:78:90:22",
"ssid":"TP_Lechnage"
}
],
"enable":true
}
},
"id":"37c233a4-84f3-4265-be99-78e4d3370bae"
}
