Skip to content

Commit 3cf8748

Browse files
Merge pull request #1 from PhilipsHue/master
sync
2 parents 2914abe + 4b5ed35 commit 3cf8748

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,5 @@ This will prevent issues like [#147](https://github.com/PhilipsHue/flutter_react
251251

252252
#### Unofficial example apps
253253

254-
Example implementation UART over BLE:[link](https://github.com/wolfc01/flutter_reactive_ble_uart_example)
254+
- Example implementation UART over BLE:[link](https://github.com/wolfc01/flutter_reactive_ble_uart_example)
255+
- Example implementation subscription to characteristic using StreamProvider: [link](https://github.com/ubiqueIoT/flutter-reactive-ble-example)

packages/reactive_ble_mobile/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protobuf {
9595

9696
dependencies {
9797
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
98-
implementation 'com.polidea.rxandroidble2:rxandroidble:1.13.0'
98+
implementation 'com.polidea.rxandroidble2:rxandroidble:1.16.0'
9999
implementation 'com.google.protobuf:protobuf-javalite:3.18.1'
100100
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
101101
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/ble/ReactiveBleClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ open class ReactiveBleClient(private val context: Context) : BleClient {
7575
return rxBleClient.scanBleDevices(
7676
ScanSettings.Builder()
7777
.setScanMode(scanMode.toScanSettings())
78+
.setLegacy(false)
7879
.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
7980
.setShouldCheckLocationServicesState(requireLocationServicesEnabled)
8081
.build(),

0 commit comments

Comments
 (0)