Skip to content

Commit f88f7e6

Browse files
Fix typo (#778)
1 parent a8a0d6b commit f88f7e6

File tree

13 files changed

+29
-30
lines changed

13 files changed

+29
-30
lines changed

example/lib/src/ble/ble_device_interactor.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BleDeviceInteractor {
4848
_logMessage('Discovering services finished');
4949
return result;
5050
} on Exception catch (e) {
51-
_logMessage('Error occured when discovering services: $e');
51+
_logMessage('Error occurred when discovering services: $e');
5252
rethrow;
5353
}
5454
}
@@ -62,39 +62,39 @@ class BleDeviceInteractor {
6262
return result;
6363
} on Exception catch (e, s) {
6464
_logMessage(
65-
'Error occured when reading ${characteristic.characteristicId} : $e',
65+
'Error occurred when reading ${characteristic.characteristicId} : $e',
6666
);
6767
// ignore: avoid_print
6868
print(s);
6969
rethrow;
7070
}
7171
}
7272

73-
Future<void> writeCharacterisiticWithResponse(
73+
Future<void> writeCharacteristicWithResponse(
7474
QualifiedCharacteristic characteristic, List<int> value) async {
7575
try {
7676
_logMessage(
7777
'Write with response value : $value to ${characteristic.characteristicId}');
7878
await _writeWithResponse(characteristic, value: value);
7979
} on Exception catch (e, s) {
8080
_logMessage(
81-
'Error occured when writing ${characteristic.characteristicId} : $e',
81+
'Error occurred when writing ${characteristic.characteristicId} : $e',
8282
);
8383
// ignore: avoid_print
8484
print(s);
8585
rethrow;
8686
}
8787
}
8888

89-
Future<void> writeCharacterisiticWithoutResponse(
89+
Future<void> writeCharacteristicWithoutResponse(
9090
QualifiedCharacteristic characteristic, List<int> value) async {
9191
try {
9292
await _writeWithoutResponse(characteristic, value: value);
9393
_logMessage(
9494
'Write without response value: $value to ${characteristic.characteristicId}');
9595
} on Exception catch (e, s) {
9696
_logMessage(
97-
'Error occured when writing ${characteristic.characteristicId} : $e',
97+
'Error occurred when writing ${characteristic.characteristicId} : $e',
9898
);
9999
// ignore: avoid_print
100100
print(s);

example/lib/src/ui/device_detail/characteristic_interaction_dialog.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ class CharacteristicInteractionDialog extends StatelessWidget {
1717
builder: (context, interactor, _) => _CharacteristicInteractionDialog(
1818
characteristic: characteristic,
1919
readCharacteristic: interactor.readCharacteristic,
20-
writeWithResponse: interactor.writeCharacterisiticWithResponse,
21-
writeWithoutResponse:
22-
interactor.writeCharacterisiticWithoutResponse,
20+
writeWithResponse: interactor.writeCharacteristicWithResponse,
21+
writeWithoutResponse: interactor.writeCharacteristicWithoutResponse,
2322
subscribeToCharacteristic: interactor.subScribeToCharacteristic,
2423
));
2524
}

example/lib/src/ui/device_detail/device_interaction_tab.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class _ServiceDiscoveryListState extends State<_ServiceDiscoveryList> {
182182
super.initState();
183183
}
184184

185-
String _charactisticsSummary(DiscoveredCharacteristic c) {
185+
String _characteristicsSummary(DiscoveredCharacteristic c) {
186186
final props = <String>[];
187187
if (c.isReadable) {
188188
props.add("read");
@@ -215,7 +215,7 @@ class _ServiceDiscoveryListState extends State<_ServiceDiscoveryList> {
215215
deviceId: deviceId),
216216
)),
217217
title: Text(
218-
'${characteristic.characteristicId}\n(${_charactisticsSummary(characteristic)})',
218+
'${characteristic.characteristicId}\n(${_characteristicsSummary(characteristic)})',
219219
style: const TextStyle(
220220
fontSize: 14,
221221
),

packages/flutter_reactive_ble/lib/src/reactive_ble.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FlutterReactiveBle {
1818

1919
factory FlutterReactiveBle() => _sharedInstance;
2020

21-
///Create a new instance where injected depedencies are used.
21+
///Create a new instance where injected dependencies are used.
2222
@visibleForTesting
2323
FlutterReactiveBle.witDependencies({
2424
required DeviceScanner deviceScanner,
@@ -245,7 +245,7 @@ class FlutterReactiveBle {
245245
/// Disconnecting the device is achieved by cancelling the stream subscription.
246246
///
247247
/// [id] is the unique device id of the BLE device: in iOS this is a uuid and on Android this is
248-
/// a Mac-Adress.
248+
/// a Mac-Address.
249249
/// Use [servicesWithCharacteristicsToDiscover] to scan only for the specific services mentioned in this map,
250250
/// this can improve the connection speed on iOS since no full service discovery will be executed. On Android
251251
/// this variable is ignored since partial discovery is not possible.
@@ -271,7 +271,7 @@ class FlutterReactiveBle {
271271
///
272272
/// Disconnecting the device is achieved by cancelling the stream subscription.
273273
///
274-
/// The [prescanDuration] is the amount of time BLE disovery should run in order to find the device.
274+
/// The [prescanDuration] is the amount of time BLE discovery should run in order to find the device.
275275
/// Use [servicesWithCharacteristicsToDiscover] to scan only for the specific services mentioned in this map,
276276
/// this can improve the connection speed on iOS since no full service discovery will be executed. On Android
277277
/// this variable is ignored since partial discovery is not possible.

packages/flutter_reactive_ble/lib/src/rx_ext/serial_disposable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class _SerialAlreadyDisposed extends Error {
4040
String toString() => "An instance of $_type has already been disposed";
4141
}
4242

43-
/// A [SerialDisposable] that constains an underlying stream subscription.
43+
/// A [SerialDisposable] that contains an underlying stream subscription.
4444
class StreamSubscriptionSerialDisposable
4545
extends SerialDisposable<StreamSubscription> {
4646
StreamSubscriptionSerialDisposable()

packages/reactive_ble_mobile/ios/Classes/Prelude/CoreBluetooth+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import class CoreBluetooth.CBPeripheral
1313
//
1414
// Thus this code shadows original property declarations in CoreBluetooth
1515
// and changes their semantics from `unsafe non-optional` to `weak optional`
16-
// to mimic Xcode 13 behaviour.
16+
// to mimic Xcode 13 behavior.
1717
//
1818
// - Note: This code compiles only when using Xcode 12 and below.
1919
// - SeeAlso: https://forums.swift.org/t/is-unowned-unsafe-t-weak-t-a-breaking-change/49917

packages/reactive_ble_platform_interface/lib/src/model/connection_priority.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ enum ConnectionPriority {
99

1010
/// high priority, low latency connection.
1111
highPerformance,
12-
// reduced power, low data rate connennection.
12+
// reduced power, low data rate connection.
1313
lowPower,
1414
}
1515

packages/reactive_ble_platform_interface/lib/src/model/discovered_characteristic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:meta/meta.dart';
22

33
import 'uuid.dart';
44

5-
/// Specific BLE characteristic for a BLE device characterised by [deviceId], [serviceId] and
5+
/// Specific BLE characteristic for a BLE device characterized by [deviceId], [serviceId] and
66
/// [characteristicId].
77
@immutable
88
class DiscoveredCharacteristic {

packages/reactive_ble_platform_interface/lib/src/model/log_level.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// States the level of debuglogging within this library
1+
/// States the level of debug logging within this library
22
enum LogLevel {
33
/// No debugLogging at all. This is the default level within the library.
44
none,

packages/reactive_ble_platform_interface/lib/src/model/qualified_characteristic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:meta/meta.dart';
22

33
import 'uuid.dart';
44

5-
/// Specific BLE characteristic for a BLE device characterised by [deviceId], [serviceId] and
5+
/// Specific BLE characteristic for a BLE device characterized by [deviceId], [serviceId] and
66
/// [characteristicId].
77
@immutable
88
class QualifiedCharacteristic {

0 commit comments

Comments
 (0)