readCharacteristic method

  1. @override
Future<Uint8List?> readCharacteristic({
  1. required String serviceUuid,
  2. required String characteristicUuid,
  3. Duration timeout = const Duration(seconds: 30),
})
override

readCharacteristic reads the value of a BLE characteristic. The return value is the raw bytes of the characteristic.

If the characteristic is not readable, this method will return null.

Implementation

@override
Future<Uint8List?> readCharacteristic({
  required String serviceUuid,
  required String characteristicUuid,
  Duration timeout = const Duration(seconds: 30),
}) =>
    throw UnimplementedError('readCharacteristic() has not been implemented.');