670完成
This commit is contained in:
@ -335,6 +335,8 @@ class BleHelper {
|
||||
}
|
||||
uni.getBluetoothAdapterState({
|
||||
success: (info) => {
|
||||
this.data.available=info.available;
|
||||
this.data.discovering=info.discovering;
|
||||
resolve(info);
|
||||
},
|
||||
fail: (ex1) => {
|
||||
@ -358,6 +360,7 @@ class BleHelper {
|
||||
resolve(false);
|
||||
return;
|
||||
}
|
||||
|
||||
uni.openBluetoothAdapter({
|
||||
success: (args) => {
|
||||
console.log("蓝牙初始化成功:" + JSON.stringify(args));
|
||||
|
Reference in New Issue
Block a user