@@ -21,7 +21,7 @@ works as long as a Flow has an attached consumer. After the Flow is closed the s
21
21
22
22
### Dependency
23
23
``` Groovy
24
- implementation 'no.nordicsemi.android.kotlin.ble:scanner:1.0.14 '
24
+ implementation 'no.nordicsemi.android.kotlin.ble:scanner:1.1.0 '
25
25
```
26
26
27
27
## BLE Client
@@ -32,9 +32,11 @@ Below example is based on [the Blinky profile](https://github.com/NordicSemicond
32
32
33
33
Connection to the Blinky DK may look like that:
34
34
``` kotlin
35
+ import no.nordicsemi.android.kotlin.ble.client.main.callback.ClientBleGatt
36
+
35
37
viewModelScope.launch {
36
- // Connect a Bluetooth LE device. This is a suspend function which waits until device is in conncted state.
37
- val connection = blinkyDevice .connect(context) // blinkyDevice from scanner
38
+ // Connect a Bluetooth LE device. This is a suspend function which waits until device is in connected state.
39
+ val connection = ClientBleGatt .connect(context, blinkyDevice, viewModelScope, options ) // blinkyDevice from scanner
38
40
39
41
// Discover services on the Bluetooth LE Device. This is a suspend function which waits until device discovery is finished.
40
42
val services = connection.discoverServices()
@@ -76,7 +78,7 @@ viewModelScope.launch {
76
78
77
79
### Dependency
78
80
``` Groovy
79
- implementation 'no.nordicsemi.android.kotlin.ble:client:1.0.14 '
81
+ implementation 'no.nordicsemi.android.kotlin.ble:client:1.1.0 '
80
82
```
81
83
82
84
## BLE Advertiser
@@ -110,7 +112,7 @@ The library is used to advertise the server.
110
112
111
113
### Dependency
112
114
``` Groovy
113
- implementation 'no.nordicsemi.android.kotlin.ble:advertiser:1.0.14 '
115
+ implementation 'no.nordicsemi.android.kotlin.ble:advertiser:1.1.0 '
114
116
```
115
117
116
118
## BLE Server
@@ -187,5 +189,5 @@ The library is used to create a Bluetooth LE server.
187
189
188
190
### Dependency
189
191
``` Groovy
190
- implementation 'no.nordicsemi.android.kotlin.ble:server:1.0.14 '
192
+ implementation 'no.nordicsemi.android.kotlin.ble:server:1.1.0 '
191
193
```
0 commit comments