|
this.ble.writeValueForCharacteristic({
peripheralUUID: this.connectUUID,
serviceUUID: this.ServerUUID,
characteristicUUID: this.WriteUUID,
value: value,
writeType:'response'
}, (ret,err)=>{
if (ret) {
console.log(JSON.stringify(ret))
}else{
console.log(JSON.stringify(err))
api.toast({
msg: '发送失败,发送信息为空。',
duration: 2000,
location: 'bottom'
});
}
});
安卓的,最新的模块,用蓝牙调试助手发送指令没有问题,用模块发送会过很久才显示发送成功,其他app中使用该模块没有类似问题。 |
|