getDeviceVolume
功能描述
获取指定设备的当前音量大小
发送参数
Object
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| sn | string | 是 | 设备的SN序列号 |
返回类型
是否为Promise: 是
返回值
Object
| 属性 | 类型 | 说明 |
|---|---|---|
| errCode | number | 错误码 |
| errMsg | string | 错误消息 |
| value | number | 音量大小 |
调用示例
app.imcamWx.getDeviceVolume({
sn: '100000000000001'
})
.then(res => {
console.log(res)
})返回值示例
{
errCode: 0,
errMsg: 'ok',
value: 50
}