Skip to content

Commit

Permalink
Merge pull request #20 from PhilipsHue/bump-to-version-1-1
Browse files Browse the repository at this point in the history
Bump to version 1 1
  • Loading branch information
remonh87 authored Feb 20, 2020
2 parents 14ab96a + 2780e0c commit 38280ab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand Down
9 changes: 4 additions & 5 deletions example/lib/src/ui/device_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ class _DeviceListState extends State<DeviceList> {
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,
Expand All @@ -130,20 +129,20 @@ class _DeviceListState extends State<DeviceList> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
RaisedButton(
child: const Text('Start scanning'),
child: const Text('Scan'),
onPressed: _scanSubscription == null &&
_status == BleStatus.ready &&
_isValidUuidInput()
? _startScanning
: 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,
),
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 38280ab

Please sign in to comment.