On open connection dtr is always True. How to configure dtr flag before connection opened?
Example:
transport, protocol = await serialx.create_serial_connection(
loop=loop,
protocol_factory=your_protocol_factory,
url="/dev/serial/by-id/port",
baudrate=115200,
)
Passing next kwargs also not working:
rtscts: bool = False,
dsrdtr: bool = False,
rtsdtr_on_open: PinState = PinState.LOW,
rtsdtr_on_close: PinState = PinState.LOW,
dtr=False # raising error
Working pyserial example:
s = serial.Serial()
s.port = "/dev/ttyUSB0"
s.baudrate = 115200
s.dtr=False
s.open()
On open connection dtr is always True. How to configure dtr flag before connection opened?
Example:
Passing next kwargs also not working:
Working pyserial example: