Skip to content

Android BLE Library v 2.3.0

Choose a tag to compare

@philips77 philips77 released this 30 Aug 08:33

Main changes:

  • Added support for Kotlin in new :ble-ktx module.
  • :ble-livedata module is converted to Java, as :ble-ktx added support for Flow.
  • JsonMerger added, which combines incoming notifications/indications/incoming write requests (as server).
  • Multiple issues fixed.

Detailed changes:

  • Improve the handling of ConnectRequests to bonded devices w/ autoConnect=true (#253)
  • Fix README (#222, #275)
  • Update connectGatt version 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 report REASON_TERMINATE_PEER_USER (#284)
  • Bug fix: Connection failed with different reason than onDisconnected callback. (#257)
  • Bug fix: Crash in enqueue() (#252)
  • Improvement: Adding option to cancel pending connection (#292)
  • Improvement: Adding "then" callback to Requests (#293)
  • New feature: JsonMerger added, which will combine multiple packets until full JSON object or array is received 158bc9b
  • New feature: support for onServiceChanged callback (API 31) 2ed10f7
  • Improvement: Migration to Android Studio 4.2.x and Maven Central (#296)
  • Breaking: :ble-livedata migrated to Java a74c983
  • Added support for Kotlin (coroutiones and flow) in :ble-ktx module (#297)