jpnurmi / flutter_libserialport

Serial Port for Flutter
https://pub.dev/packages/flutter_libserialport
MIT License
139 stars 80 forks source link

How to set the baud rate ? #93

Closed shessafridi closed 6 months ago

shessafridi commented 6 months ago

How do we set the baud rate for the port ?

mihailacusteanu commented 6 months ago

is this working for you?

SerialPort port = SerialPort("my port");
final config = SerialPortConfig();
config.baudRate = 115200;
port.config = config;
shessafridi commented 6 months ago

is this working for you?

SerialPort port = SerialPort("my port");
final config = SerialPortConfig();
config.baudRate = 115200;
port.config = config;

Yes, thank you

mihailacusteanu commented 6 months ago

@shessafridi did you manage to read data? As I described in #94 I am not sure how to read serial port until end of line