switchDevice
切换音箱设备
#请求参数
| Prop |
Type |
Required |
Default |
Description |
param |
Object |
Y |
{}附表1 |
请求参数 |
| Prop |
Type |
Required |
Default |
Description |
object |
Object |
Y |
{} |
(参考 orion 的 sdk 文档) |
- 附表2:sendBlueMeshControlMessage参数示例
| Prop |
Type |
Required |
Default |
Description |
name |
String |
Y |
N/A |
订阅的控制类型消息(如:"GenericOnOff" 群控制设备开关) |
#接口调用示例
soundModule.switchDevice(param, (resp) => {
this.$alert("成功")
}, (error) => {
this.$toast("失败")
})
#返回参数
| Prop |
Type |
Default |
Description |
isSuccess |
Boolean |
N/A |
true / false |
| Prop |
Type |
Default |
Description |
errorCode |
Number |
N/A |
失败错误码 |
errorMessage |
String |
N/A |
错误消息(如有) |