setRts method

  1. @override
Future<void> setRts(
  1. bool active
)
override

Drive the RTS (Request To Send) modem control line.

Implementation

@override
Future<void> setRts(bool active) async {
  if (!isOpen) throw StateError('LibserialportSerialTransport not open');
  _check(
    _bindings.spSetRts(_port!, active ? SpSignal.high : SpSignal.low),
    'sp_set_rts',
  );
}