Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Taym95 authored Aug 11, 2020
1 parent d224ff9 commit 7133b88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ issue use the method `connectToAdvertisingDevice` to first scan for the device a
```dart
reactiveBleClient.connectToAdvertisingDevice(
id: foundDeviceId,
withService: serviceUuid,
withServices: [serviceUuid],
prescanDuration: const Duration(seconds: 5),
servicesWithCharacteristicsToDiscover: {serviceId: [char1, char2]},
connectionTimeout: const Duration(seconds: 2),
Expand All @@ -81,7 +81,7 @@ reactiveBleClient.connectToAdvertisingDevice(
});
```

Besides the normal connection parameters that are described above this function also has 2 additional required parameters: `withService` and `prescanDuration`. PreScanDuration is the amount of time the ble stack will scan for the device before it attempts to connect (if the device is found)
Besides the normal connection parameters that are described above this function also has 2 additional required parameters: `withServices` and `prescanDuration`. PreScanDuration is the amount of time the ble stack will scan for the device before it attempts to connect (if the device is found)

### Read / write characteristics

Expand Down Expand Up @@ -196,4 +196,4 @@ iOS13 and higher
* NSBluetoothAlwaysUsageDescription

iOS12 and lower
* NSBluetoothPeripheralUsageDescription
* NSBluetoothPeripheralUsageDescription

0 comments on commit 7133b88

Please sign in to comment.