Fixed Bluetooth discovery until macOS Monterey

This commit is contained in:
Nathan Kellenicki 2022-01-18 17:02:35 -08:00
parent aabf02580e
commit 48a8aea80a

View File

@ -25,7 +25,10 @@ let wantScan = false;
let discoveryEventAttached = false;
const startScanning = () => {
noble.startScanning();
noble.startScanning([
Consts.BLEService.LPF2_HUB,
Consts.BLEService.WEDO2_SMART_HUB
]);
};
noble.on("stateChange", (state: string) => {