read method

Future<List<int>> read()

Reads the value of the specified characteristic.

The returned future completes with an error in case of a failure during reading.

Be aware that a read request could be satisfied by a notification delivered for the same characteristic via FlutterReactiveBle.characteristicValueStream before the actual read response arrives (due to the design of iOS BLE API).

Implementation

Future<List<int>> read() {
  _assertValidity();
  return _lib._connectedDeviceOperator.readCharacteristic(_ids);
}