bluetoothSwitchModuleMode 通过蓝牙切换模组挂靠模式

bluetoothSwitchModuleMode^8.0

通过蓝牙切换模组挂靠模式

#请求参数

Prop Type Default Comment
mac String N/A mac
applianceId String N/A 设备id
mode String N/A 0:不可挂靠模式 1:可挂靠模式
time String N/A 单位:分钟,eg:5

#接口调用示例

const params = {
  mac: 'xxxxxxxxx', //mac
  applianceId: '', // 设备id name mock Data文件名,于dummy文件夹下,通过name匹配相应模拟数据文件
  mode:'0', //0:不可挂靠模式 1:可挂靠模式
  time:'x'  //单位:分钟,eg:5
}
this.$bridge
  .switchModuleMode(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
errorMessage String N/A 错误消息
errorCode Number N/A 错误码,0成功
  • 失败时返回
posted on 2024-12-16 09:45  AtlasLapetos  阅读(9)  评论(0)    收藏  举报