diff --git a/CHANGELOG.MD b/CHANGELOG.MD index fecf2240..37b30eb9 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,9 @@ +## 1.1.0 +* Add RSSI value to discovered device results +* Improved parsing of UUIDs +* Migrated to latest Android plugin binding +* Small improvements + ## 1.0.2 * Fix crash on clear Gattcache diff --git a/README.md b/README.md index b137e04f..60666c59 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ Flutter library that handles BLE operations for multiple devices. -## Work in progress -The library is feature complete but we are working at the moment on improving documentation and the example app. - ## Usage The reactive BLE lib supports the following: - BLE device discovery @@ -126,7 +123,7 @@ await reactiveBleClient.requestConnectionPriority(deviceId: 'AA:BB:CC:DD:EE:FF', #### Clear GATT cache The Android OS maintains a table per device of the discovered service in cache. Sometimes it happens that after a firmware update a new service is introduced but the cache is not updated. To invalidate the cache you can use the cleargattCache operation. -**This is a hidden BLE operation and should be used with extreme caution since usage is not encouraged by the Android team** +** This is a hidden BLE operation and should be used with extreme caution since this operation is on the [greylist](https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces). ** ```dart await reactiveBleClient.clearGattCache('AA:BB:CC:DD:EE:FF'); diff --git a/example/lib/src/ui/device_list.dart b/example/lib/src/ui/device_list.dart index 290a61fe..1175e491 100644 --- a/example/lib/src/ui/device_list.dart +++ b/example/lib/src/ui/device_list.dart @@ -113,8 +113,7 @@ class _DeviceListState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox(height: 16), - const Text( - 'UUID to use for scanning: (short or long version)'), + const Text('Service UUID (2, 4, 16 bytes):'), TextField( controller: _uuidController, enabled: _scanSubscription == null, @@ -130,7 +129,7 @@ class _DeviceListState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ RaisedButton( - child: const Text('Start scanning'), + child: const Text('Scan'), onPressed: _scanSubscription == null && _status == BleStatus.ready && _isValidUuidInput() @@ -138,12 +137,12 @@ class _DeviceListState extends State { : null, ), RaisedButton( - child: const Text('Stop scanning'), + child: const Text('Stop'), onPressed: _scanSubscription != null ? _stopScanning : null, ), RaisedButton( - child: const Text('Clear scanlist'), + child: const Text('Clear'), onPressed: _devices.isNotEmpty ? _clearDeviceList : null, ), diff --git a/example/pubspec.lock b/example/pubspec.lock index a94e6973..304ab369 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -82,7 +82,7 @@ packages: path: ".." relative: true source: path - version: "1.0.2" + version: "1.1.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/example/pubspec.yaml b/example/pubspec.yaml index a21f750d..91e7e619 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_reactive_ble_example description: Demonstrates how to use the flutter_reactive_ble plugin. -version: 0.1.0 +version: 1.1.0 publish_to: 'none' environment: diff --git a/pubspec.yaml b/pubspec.yaml index f7e94784..5fd09b56 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_reactive_ble description: Reactive Bluetooth low energy (BLE) plugin that can communicate with multiple devices -version: 1.0.2 +version: 1.1.0 homepage: https://github.com/PhilipsHue/flutter_reactive_ble environment: