Guoqiang.Li
01/31/2025, 4:10 PMtravis
01/31/2025, 4:35 PM000000FF-0000-1000-8000-00805F9B34FB
service, so that is the UUID you should use for the Scanner
service filter.
Scanner {
filters {
match {
services = listOf(uuidFrom("000000FF-0000-1000-8000-00805F9B34FB"))
}
}
}
The actual peripheral services/characteristic UUIDs may differ from what are advertised. You can examine the the service/characteristic UUIDs that are available (after connecting) using nRF Connect.Guoqiang.Li
02/01/2025, 3:21 AMtravis
02/01/2025, 8:25 AMGuoqiang.Li
02/01/2025, 11:17 AMfilters {
Filter.Service(SERVICE_UUID)
Filter.Name.Prefix("H03_")
}
I scan many devices that prefix is not H03_travis
02/01/2025, 7:21 PMAND
or OR
logic:
filters {
match {
filter1
AND
filter2
AND
filterN
..
}
OR
match {
filter1
AND
filter2
AND
filterN
..
}
}
For your specific example, you could do either of the following:
filters {
match {
services = listOf(SERVICE_UUID)
// AND
name = Filter.Name.Prefix("H03_")
}
}
filters {
match {
services = listOf(SERVICE_UUID)
}
// OR
match {
name = Filter.Name.Prefix("H03_")
}
}
Guoqiang.Li
02/02/2025, 10:32 AM