Android BLE Library v 2.3.0
Main changes:
- Added support for Kotlin in new
:ble-ktxmodule. :ble-livedatamodule is converted to Java, as:ble-ktxadded support for Flow.JsonMergeradded, which combines incoming notifications/indications/incoming write requests (as server).- Multiple issues fixed.
Detailed changes:
- Improve the handling of
ConnectRequeststo bonded devices w/autoConnect=true(#253) - Fix README (#222, #275)
- Update
connectGattversion logic to handle bug specifically in API 26 (#248) - Introduces a GATT server example (#234)
- Introduces a GATT client example (#238)
- Remove outdated documentation on
getGattCallback()(#277) - Bug fix: Reset MTU to 23 on disconnect (#249)
- Bug fix: setting state to disconnected after Bluetooth goes OFF, of device bond info is removed (#278)
- Bug fix for #273, and possibly #241 and #120
- Bug fix: Service discovery is called twice even if they discovered successfully (for some phones) (#279)
- Bug fix:
ConnectionObserver.onDeviceDisconnected()can never reportREASON_TERMINATE_PEER_USER(#284) - Bug fix: Connection failed with different reason than
onDisconnectedcallback. (#257) - Bug fix: Crash in
enqueue()(#252) - Improvement: Adding option to cancel pending connection (#292)
- Improvement: Adding "then" callback to
Requests (#293) - New feature:
JsonMergeradded, which will combine multiple packets until full JSON object or array is received 158bc9b - New feature: support for
onServiceChangedcallback (API 31) 2ed10f7 - Improvement: Migration to Android Studio 4.2.x and Maven Central (#296)
- Breaking:
:ble-livedatamigrated to Java a74c983 - Added support for Kotlin (coroutiones and flow) in
:ble-ktxmodule (#297)