BleSerial constructor
BleSerial({
- required BleCharacteristic characteristicRx,
- required BleCharacteristic characteristicTx,
Implementation
BleSerial({
required BleCharacteristic characteristicRx,
required BleCharacteristic characteristicTx,
}) : _characteristicRx = characteristicRx,
_characteristicTx = characteristicTx {
_subscription = _characteristicRx.dataStream.listen((data) {
_responseGuard.stop();
notifyData(data);
});
}