Current Device WiFi - Device Connected Hotspot Info - Imou Open Platform
currentDeviceWifi: device currently connected hotspot information
Function details
Get the hotspot information that the device is currently connected to.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/currentDeviceWifi
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":"706fd059bef5b5964117a9aa15885ac3",
"time":1603366027,
"nonce":"48404de7-2d6b-44e0-8c01-fd064a11ee12"
},
"id":"e3f44f71-1ed0-40fc-b38e-aca69c945ac9",
"params":{
"deviceId":"TESTQWERXXXX",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | ||
|---|---|---|---|---|
| linkEnable | Boolean | Whether wifi is connected, true: yes, false: no | ||
| ssid | String | The name of the hotspot currently connected | ||
| intensity | Integer | Strength, 0 is the weakest, 5 is the strongest | ||
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"intensity":"5",
"ssid":"TP_DiamondC",
"linkEnable":true
}
},
"id":"e3f44f71-1ed0-40fc-b38e-aca69c945ac9"
}
