# callSoundbox
呼叫音箱
# 请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
param | Object | Y | {}属性: sn:{Type: String, Default: N/A, Description: sn值 } deviceName:{Type: String, Default: N/A, Description: 设备名称 } callType:{Type: Number, Default: N/A, Description: 配网模式( 0AP、1快连、3蓝牙)} | 请求参数 |
# 接口调用示例
soundModule.callSoundbox(param, (resp) => {
this.$alert("成功")
}, (error) => {
this.$toast("失败")
})
1
2
3
4
5
2
3
4
5
# 返回参数
- 失败时返回
| Prop | Type | Default | Description |
|---|---|---|---|
errorCode | Number | N/A | 0代表成功 |
errorMessage | String | N/A | 错误消息(如有) |