github-actions
released this
29 Jul 19:56
·
55 commits
to refs/heads/main
since this release
Note
This version of Kable provides a DSL for specifying scan filters and should be used instead of the old deprecated filter list (which will be removed in a future Kable release).
Some example migrations to the new scan filter DSL:
Deprecated | New filter DSL |
---|---|
Scanner {
filters = listOf(Filter.Name("My device"))
} |
Scanner {
filters {
match {
name = Filter.Name.Exact("My device")
}
}
} |
Scanner {
filters = listOf(
Filter.Service(uuidFrom(..)),
Filter.NamePrefix("Ex"),
)
} |
Scanner {
filters {
match {
services = listOf(uuidFrom(..))
}
match {
name = Filter.Name.Prefix("Ex")
}
} |
val options = Options(
filters = listOf(
Filter.NamePrefix("Example"),
),
optionalServices = listOf(
uuidFrom(..),
),
)
scope.requestPeripheral(options).await() |
val options = Options {
filters {
match {
name = Filter.Name.Prefix("Example")
}
}
optionalServices = listOf(
uuidFrom(..),
)
)
scope.requestPeripheral(options).await() |
See Scanning section of README and #695 for more details.
Android
- Fix nullability of
connectGattCompat
function (#720)
Apple
- Fix reading of descriptor value as
NSData
(#706), special thanks to @FabioCornelli for the contribution