wx.onBLECharacteristicValueChange(function(res) {
  console.log(`characteristic ${res.characteristicId} has changed, now is ${res.value}`)
})

蓝牙过失码(errCode)列表

过失码 说明 备注
0 ok 正常
10000 not init 未初始化蓝牙适配器
10001 not available 目今蓝牙适配器不可用
10002 no device 没有找到指定装备
10003 connection fail 毗连失败
10004 no service 没有找到指定服务
10005 no characteristic 没有找到指定特征值
10006 no connection 目今毗连已断开
10007 property not support 目今特征值不支持此操作
10008 system error 其余所有系统上报的异常
10009 system not support Android 系统特有,,系统版本低于 4.3 不支持BLE
10010 no descriptor 没有找到指定形貌符