Skip to content

Commit 8a6e48a

Browse files
committed
Release 2.3.0
1 parent 01d9603 commit 8a6e48a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ It filters the scan results to those that advertise a service with specified UUI
122122

123123
**NOTE:** `isConnectable` and `overflowServiceUuids` fields of `ScanResult` are iOS-only and remain `null` on Android.
124124

125+
126+
### Connecting to saved peripheral
127+
128+
You can try to connect to a peripheral with known ID, be it previously scanned UUID on iOS or a MAC address on Android, and avoid the whole scanning operation in your application. To do so, you need to create an instance of `Peripheral` using:
129+
```dart
130+
Peripheral myPeripheral = bleManager.createUnsafePeripheral("< known id >");
131+
```
132+
Once you have the instance of the peripheral, you may proceed with the connection.
133+
125134
### Connecting to peripheral
126135

127136
First you must obtain a _ScanResult_ from _BleManager.startPeripheralScan()_.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.polidea.flutter_ble_lib'
2-
version '2.2.9'
2+
version '2.3.0'
33

44
buildscript {
55
repositories {

ios/flutter_ble_lib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'flutter_ble_lib'
6-
s.version = '2.2.9'
6+
s.version = '2.3.0'
77
s.summary = 'A new flutter plugin project.'
88
s.description = <<-DESC
99
A new flutter plugin project.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_ble_lib
22
description: FlutterBle Library is a flutter library that supports BLE operations. It uses MultiPlatformBleAdapter as a native backend..
3-
version: 2.2.9
3+
version: 2.3.0
44
homepage: https://github.com/Polidea/FlutterBleLib
55

66
environment:

0 commit comments

Comments
 (0)