filter out null BLE device names

pull/458/head
andrekir 2022-07-27 00:13:44 -03:00
rodzic 4556464b32
commit 589578c0da
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -356,7 +356,7 @@ class BTScanModel @Inject constructor(
// respectively. This example uses Bluetooth.
// We only look for Mesh (rather than the full name) because NRF52 uses a very short name
val deviceFilter: BluetoothDeviceFilter = BluetoothDeviceFilter.Builder()
// .setNamePattern(Pattern.compile("Mesh.*"))
.setNamePattern(Pattern.compile("^\\S+\$"))
// .addServiceUuid(ParcelUuid(BluetoothInterface.BTM_SERVICE_UUID), null)
.build()