Android BLE Library v 2.4.0
Finally, we released the stable version 2.4.0 of the Android BLE Library. It contains lots of improvements and bug fixes.
The main changes are:
-
More Kotlin extensions in the
ble-ktxmodule.Now, apart from
suspend()method, which returnsDataforReadRequestandWriteReqeust(client side) andWaitForValueChangedRequestandWaitForReadRequest(server side), you may usesuspendForResponse()andsuspendForValidResponse()which return an object extendingReadResponseorWriteResponse.
The notifications and indications can also be collected as response Flow using newasResponseFlow()andasValidResponseFlow().
With #371 merged it is also possible to get progress indications as flow for outgoing packets using a splitter and incoming packets using a merger. UsesplitWithProgressFlow(Splitter)ormergeWithProgressFlow(Merger). -
#352 added support for Big Endian encoding in the
Dataclass to make writing and reading values easier. #353 has deprecatedFORMAT_xxxconstants in favor ofFORMAT_xxx_LEorFORMAT_xxx_BE. -
#370 allowed to filter fully merged packets. Previously, the
filter(...)option allowed to filter incoming packets before they were given to the merger. The newfilterPacket(...)does similar thing, but with complete, merged, received packet. -
And, as usual, reported bugs were fixed.
What's Changed since beta 3
- Filtering merged packets by @philips77 in #370
- Typo in license fixed by @philips77 in #372
- Progress indication as flow by @philips77 in #371
Full Changelog: 2.4.0-beta03...2.4.0