Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Sep 29, 2023
2 parents 87a077f + 1389111 commit 2708b6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions USAGE.md
Expand Up @@ -138,7 +138,7 @@ writeCharacteristic(someCharacteristic, someData, BluetoothGattCharacteristic.WR
// .split() with no parameters uses the default MTU splitter.
// Kotlin projects can use .splitWithProgressAsFlow(customSplitter) to get the progress as Flow.
.before(device -> { /* called when the request is about to be executed */ })
.with(device, data -> { /* called when the request has been executed */ })
.with( (device, data) -> { /* called when the request has been executed */ })
.done(device -> { /* called when the request has completed successfully */ })
.fail(device, status -> { /* called when the request has failed */ })
.invalid({ /* called when the request was invalid, i.e. the target device or given characteristic was null */ })
Expand All @@ -157,7 +157,7 @@ readCharacteristic(someCharacteristic)
// Complete, merged packets can also be filtered.
.filterPacket(packetFilter)
// [...]
.with(device, data -> { /* called when the data have been received */ })
.with( (device, data) -> { /* called when the data have been received */ })
// [...]
// Once again, remember to enqueue each request!
.enqueue()
Expand Down Expand Up @@ -241,4 +241,4 @@ val response: MyResponse = readCharacteristic(someCharacteristic)
To validate the received value use `suspendForValidResponse()` with a type extending `ProfileReadResponse`.
See an example [here](https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/8352e92ce2dd12af5a05a60643a64187473adbc0/blinky/ble/src/main/java/no/nordicsemi/android/blinky/ble/data/LedCallback.kt#L7).

</details>
</details>

0 comments on commit 2708b6a

Please sign in to comment.