Closed cmaglie closed 1 year ago
Based on #47, the API is slightly different to allow DTR and RTS to default to true if not specified:
DTR
RTS
true
port, err := serial.Open("/dev/ttyUSB0", &serial.Mode{BaudRate: 9600})
this is the full initialization:
port, err := serial.Open("/dev/ttyUSB0", &serial.Mode{ BaudRate: 9600, DataBits: 8, Parity: serial.NoParity, StopBits: serial.OneStopBit, InitialStatusBits: &serial.ModemOutputBits{ RTS: true, DTR: false, }, })
Based on #47, the API is slightly different to allow
DTR
andRTS
to default totrue
if not specified:this is the full initialization: