setZoomFocus: Set the power zoom factor of the device
setZoomFocus: Set the power zoom factor of the device
Function details
Set the power zoom factor of the device.
Remarks: Electric zoom requires the device to have the ZoomFocus capability set
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/setZoomFocus
The minimum permissions required for the sub-account token request
"Permission":"Config" "Resource":"cam:serial number:channel 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 | ||
| channelId | String | Yes | Channel ID | ||
| type | String | Yes | "large": "incremental enlargement", "small": "incremental reduction", "cover": "full coverage" | Operation type | |
| zoomFocus | String | Yes | [0.0-1.0] | The zoom factor, the device side will be normalized, that is, the zoom will not exceed 0 and 1 |
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"type":"large",
"zoomFocus":"0.5"
}
}
Return data field description
No data return field
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0"
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
