Releases: chipweinberger/flutter_blue_plus
1.10.9
- [fix] Android: turnOn() and turnOff() could timeout if already on or already off
1.10.8
- [fix] Android: requestMtu (regression in 1.10.6)
1.10.7
- [improve] Dart: disconnect should wait for disconnect to complete
1.10.6
- [improve] Dart: for convenience, scan results now also include connected devices see: includeConnectedDevice
- [improve] Dart: add connectionState to ScanResult
- [improve] Dart: add BluetoothDevice.servicesList for convenience, which calls discoverServices automatically.
- [rename] Dart: BluetoothDevice.services -> BluetoothDevice.servicesStream
1.10.5
- [fix] iOS: API MISUSE: Cancelling connection for unused peripheral.
- [improve] iOS: remove unecessary search of already connected devices during connection
1.10.4
- [improve] iOS: add remoteId to error strings when connection fails, etc
1.10.3
- [improve] Android: handle scan failure.
- [improve] Dart: add verbose log level and remove unused log levels
1.10.2
- [fix] Dart: setLogLevel recursion (Regression in 1.10.0)
- [improve] iOS: use NSError instread of obj-c exceptions to avoid uncaught exceptions
1.10.1
- [improve] Example: add error handling to descriptor read & write
1.10.0
This release is focused on improving error handling and reliability.
There are 2 small breaking changes. See below.
-
BREAKING CHANGE: Dart: turnOn() & turnOff() now wait for completion, return void instead of bool, and can throw
-
BREAKING CHANGE: Dart: use static functions for FlutterBluePlus instead of FlutterBluePlus.instance. Multiple instances is not supported by any platform.
-
[improve] readme: add error handling section
-
[improve] iOS: handle missing bluetooth adapter gracefully
-
[improve] iOS: getAdapterState && getConnectionState are more robust
-
[improve] Android: log method call in debug, and more consistent log messages
-
[improve] Example: show nicer looking errors
-
[improve] Example: prefer try/catch over catchError as dart debugger doesn't work with catchError as well