Releases: NordicSemiconductor/Android-BLE-Library
2.6.0 alpha 1
Alpha
This is an alpha 1 release. All new features seems to be working, but more testing is needed. Please test and give us a feedback.
What's Changed
- Cancellation support by @philips77 in #423
- Migration to API 33 by @philips77 in #424 and #425
- Reading PHY if no callback for setting preferred one by @philips77 in #426
Full Changelog: 2.5.1...2.6.0-alpha01
Android BLE Library v 2.5.1
What's Changed
- Dependencies updated by @philips77 in #394
- Keep
onConnectionUpdated
method from being removed by proguard by @philips77 in #395 - Null checks for service discovery by @philips77 in #396
- Readme fixed by @philips77 in #397
Full Changelog: 2.5.0...2.5.1
Android BLE Library v 2.5.0
New features
- Connection parameters listener added by @philips77 in #390
What's Changed
- Migration to Android API 32 by @philips77 in #386
- Gradle plugin fixed by @philips77 in #387
- Warnings suppressed by @philips77 in #388
- Clearing deprecated battery callback on disconnection by @philips77 in #389
Full Changelog: 2.4.1...2.5.0
Android BLE Library v 2.4.1
What's Changed
- Allow sending empty packets by @sylwester-zielinski in #384
- Increase Gradle to 7.1.3 by @sylwester-zielinski in #377
Full Changelog: 2.4.0...2.4.1
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-ktx
module.Now, apart from
suspend()
method, which returnsData
forReadRequest
andWriteReqeust
(client side) andWaitForValueChangedRequest
andWaitForReadRequest
(server side), you may usesuspendForResponse()
andsuspendForValidResponse()
which return an object extendingReadResponse
orWriteResponse
.
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
Data
class to make writing and reading values easier. #353 has deprecatedFORMAT_xxx
constants in favor ofFORMAT_xxx_LE
orFORMAT_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
Android BLE Library v 2.4.0 beta 3
What's Changed
- State mapping fixed by @philips77 in #368
- Returning the same instance of state observers in ktx by @philips77 in #366
- Making sure
then()
callback is called forRemoveBond
request by @philips77 in #365
Full Changelog: 2.4.0.beta02...2.4.0-beta03
Android BLE Library v 2.4.0 beta 2
What's Changed
- Fix issue with
BluetoothDevice
field being null in ble-ktx. by @sylwester-zielinski in #359 - Fix issue when only one record is returned in CGMS profile. by @sylwester-zielinski in #360
New Contributors
- @sylwester-zielinski made their first contribution in #359
Full Changelog: 2.4.0-beta01...2.4.0.beta02
Post Scriptum
Sorry for naming the version with a dot instead of a dash. Mind, it's 2.4.0.beta02, not 2.4.0-beta02. Next time the dash will return!
Android BLE Library v 2.4.0 beta 1
What's Changed
- Added support for passkey on pairing request by @0xMyon in #320
- Option to filter logs by priority by @philips77 in #348
- The new version will by default log level INFO and higher. See #348 to check how to restore previous behavior.
- Possible NPE fixed by @philips77 in #350
- Trying to discover services despite initial bonding failure by @philips77 in #351
- Improvement: More ktx extensions by @philips77 in #349
- Improvement: Big Endian format types added by @philips77 in #352
- Deprecating FORMAT_xxx in favor of FORMAT_xxx_LE by @philips77 in #353
New Contributors
Full Changelog: 2.3.1...2.4.0-beta01
Android BLE Library v 2.3.1
This version introduces the following changes:
Android BLE Library v 2.3.0
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 reportREASON_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
Request
s (#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)