From 6dde5813af81cd5a3368cb16f3bb4c7c04a837ea Mon Sep 17 00:00:00 2001 From: MultiMote Date: Sun, 20 Oct 2024 09:26:17 +0300 Subject: [PATCH] Extended Bluetooth scan filter --- src/client/bluetooth_impl.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/client/bluetooth_impl.ts b/src/client/bluetooth_impl.ts index bb1f32b..45ef205 100644 --- a/src/client/bluetooth_impl.ts +++ b/src/client/bluetooth_impl.ts @@ -15,8 +15,20 @@ class BleConfiguration { public static readonly SERVICE: string = "e7810a71-73ae-499d-8c15-faa9aef0c3f2"; public static readonly CHARACTERISTIC: string = "bef8d6c9-9c21-4c9e-b632-bd58c1009f9f"; public static readonly FILTER: BluetoothLEScanFilter[] = [ - { namePrefix: "D" }, + { namePrefix: "A" }, { namePrefix: "B" }, + { namePrefix: "D" }, + { namePrefix: "E" }, + { namePrefix: "F" }, + { namePrefix: "H" }, + { namePrefix: "J" }, + { namePrefix: "K" }, + { namePrefix: "M" }, + { namePrefix: "N" }, + { namePrefix: "P" }, + { namePrefix: "S" }, + { namePrefix: "T" }, + { namePrefix: "Z" }, { services: [BleConfiguration.SERVICE] }, ]; }