kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
filter out null BLE device names
rodzic
4556464b32
commit
589578c0da
|
@ -356,7 +356,7 @@ class BTScanModel @Inject constructor(
|
||||||
// respectively. This example uses Bluetooth.
|
// respectively. This example uses Bluetooth.
|
||||||
// We only look for Mesh (rather than the full name) because NRF52 uses a very short name
|
// We only look for Mesh (rather than the full name) because NRF52 uses a very short name
|
||||||
val deviceFilter: BluetoothDeviceFilter = BluetoothDeviceFilter.Builder()
|
val deviceFilter: BluetoothDeviceFilter = BluetoothDeviceFilter.Builder()
|
||||||
// .setNamePattern(Pattern.compile("Mesh.*"))
|
.setNamePattern(Pattern.compile("^\\S+\$"))
|
||||||
// .addServiceUuid(ParcelUuid(BluetoothInterface.BTM_SERVICE_UUID), null)
|
// .addServiceUuid(ParcelUuid(BluetoothInterface.BTM_SERVICE_UUID), null)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue