Skip to content

Commit a3ce8ab

Browse files
committed
Readme updated
1 parent f725ca2 commit a3ce8ab

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ works as long as a Flow has an attached consumer. After the Flow is closed the s
2121

2222
### Dependency
2323
```Groovy
24-
implementation 'no.nordicsemi.android.kotlin.ble:scanner:1.0.14'
24+
implementation 'no.nordicsemi.android.kotlin.ble:scanner:1.1.0'
2525
```
2626

2727
## BLE Client
@@ -32,9 +32,11 @@ Below example is based on [the Blinky profile](https://github.com/NordicSemicond
3232

3333
Connection to the Blinky DK may look like that:
3434
```kotlin
35+
import no.nordicsemi.android.kotlin.ble.client.main.callback.ClientBleGatt
36+
3537
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
3840

3941
//Discover services on the Bluetooth LE Device. This is a suspend function which waits until device discovery is finished.
4042
val services = connection.discoverServices()
@@ -76,7 +78,7 @@ viewModelScope.launch {
7678

7779
### Dependency
7880
```Groovy
79-
implementation 'no.nordicsemi.android.kotlin.ble:client:1.0.14'
81+
implementation 'no.nordicsemi.android.kotlin.ble:client:1.1.0'
8082
```
8183

8284
## BLE Advertiser
@@ -110,7 +112,7 @@ The library is used to advertise the server.
110112

111113
### Dependency
112114
```Groovy
113-
implementation 'no.nordicsemi.android.kotlin.ble:advertiser:1.0.14'
115+
implementation 'no.nordicsemi.android.kotlin.ble:advertiser:1.1.0'
114116
```
115117

116118
## BLE Server
@@ -187,5 +189,5 @@ The library is used to create a Bluetooth LE server.
187189

188190
### Dependency
189191
```Groovy
190-
implementation 'no.nordicsemi.android.kotlin.ble:server:1.0.14'
192+
implementation 'no.nordicsemi.android.kotlin.ble:server:1.1.0'
191193
```

0 commit comments

Comments
 (0)