mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-03 21:53:55 -04:00
filter out null BLE device names
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user