Skip to content

Commit

Permalink
observe result of cleargattcache on main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
remonh87 committed Jan 21, 2020
1 parent 4d6998f commit e6fb1d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.2
* Fix crash on clear Gattcache

## 1.0.1

* Fixes #5 Undeliverable exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class PluginController {
private fun clearGattCache(call: MethodCall, result: Result) {
val args = pb.ClearGattCacheRequest.parseFrom(call.arguments as ByteArray)
bleClient.clearGattCache(args.deviceId)
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{
val info = pb.ClearGattCacheInfo.getDefaultInstance()
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.1
version: 1.0.2
homepage: https://github.com/PhilipsHue/flutter_reactive_ble

environment:
Expand Down

0 comments on commit e6fb1d2

Please sign in to comment.