Skip to content

Commit 93b3c6d

Browse files
committed
Rename bytes to value
1 parent 1ccfe02 commit 93b3c6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/characteristic.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Characteristic extends InternalCharacteristic {
3636

3737
/// True if this characteristic can be monitored via notifications.
3838
bool isNotifiable;
39+
3940
/// True if this characteristic can be monitored via indications.
4041
bool isIndicatable;
4142

@@ -70,14 +71,14 @@ class Characteristic extends InternalCharacteristic {
7071
/// [isWritableWithoutResponse] is `true` and argument [withResponse] is
7172
/// set accordingly.
7273
Future<void> write(
73-
Uint8List bytes,
74+
Uint8List value,
7475
bool withResponse, {
7576
String transactionId,
7677
}) =>
7778
_manager.writeCharacteristicForIdentifier(
7879
service.peripheral,
7980
this,
80-
bytes,
81+
value,
8182
withResponse,
8283
transactionId ?? TransactionIdGenerator.getNextId(),
8384
);

0 commit comments

Comments
 (0)