Skip to content

Android BLE Library v 2.4.0

Choose a tag to compare

@philips77 philips77 released this 22 Mar 15:10
0110295

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-ktx module.

    Now, apart from suspend() method, which returns Data for ReadRequest and WriteReqeust (client side) and WaitForValueChangedRequest and WaitForReadRequest (server side), you may use suspendForResponse() and suspendForValidResponse() which return an object extending ReadResponse or WriteResponse.
    The notifications and indications can also be collected as response Flow using new asResponseFlow() and asValidResponseFlow().
    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. Use splitWithProgressFlow(Splitter) or mergeWithProgressFlow(Merger).

  • #352 added support for Big Endian encoding in the Data class to make writing and reading values easier. #353 has deprecated FORMAT_xxx constants in favor of FORMAT_xxx_LE or FORMAT_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 new filterPacket(...) does similar thing, but with complete, merged, received packet.

  • And, as usual, reported bugs were fixed.

What's Changed since beta 3

Full Changelog: 2.4.0-beta03...2.4.0