serial_port
serial_port copied to clipboard
Examples should set the baudrate
Hello, how does one set the baudrate?? And where, client or server?
A typical serial port can't be used if the baudrate can't be set. Curiously all the examples ignore this non-optional part of a serial connection.
Other connection parameters also want at least one example.
To those that need an answer, in io_demo.dart use this:
ConnectionOptions options = ConnectionOptions()..bitrate = 115200;
SerialStreamChannel serialStreamChannel =
await service.serial.createChannel(deviceInfo.path, options: options);
ps It would also be wise to mention "baudrate" besides "bitrate", because common searches for baudrate come up empty.