Fixed Bluetooth discovery until macOS Monterey
This commit is contained in:
parent
aabf02580e
commit
48a8aea80a
@ -25,7 +25,10 @@ let wantScan = false;
|
|||||||
let discoveryEventAttached = false;
|
let discoveryEventAttached = false;
|
||||||
|
|
||||||
const startScanning = () => {
|
const startScanning = () => {
|
||||||
noble.startScanning();
|
noble.startScanning([
|
||||||
|
Consts.BLEService.LPF2_HUB,
|
||||||
|
Consts.BLEService.WEDO2_SMART_HUB
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
noble.on("stateChange", (state: string) => {
|
noble.on("stateChange", (state: string) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user