|
[BUG]
ble模块连接蓝牙报错133通常是什么原因
[复制链接]
function connect(){
console.log(JSON.stringify(peripheraluuid))
api.showProgress({
title: '蓝牙连接中...'
});
var ble = api.require('ble');
console.log('---------------------------连接中。。。。')
ble.connect({
peripheralUUID: "40:26:19:8E:83:46",
}, function(ret, err) {
if (ret.status) {
api.hideProgress();
alert("连接成功!");
} else {
api.hideProgress();
alert(err.code);
}
});
}
|
|