kochedykov / jlibmodbus

JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
http://kochedykov.github.io/jlibmodbus/
Apache License 2.0
299 stars 128 forks source link

Using Modbus RTU with custom Baudrate #91

Closed PersikLopa closed 7 months ago

PersikLopa commented 11 months ago

Is it possible to set a custom baudrate value in Serial Parameters? For example, I need to set baudrate of the Modbus RTU protocol to 921600. But I can only select predefined values from the enum Serial Port.BaudRate.

kochedykov commented 7 months ago

Pull 71cb0b07f0fddeee1cd554d443653fb04322bbe9 and try:

SerialPort.BaudRate baudrate = new SerialPort.BaudRate(921600);

kochedykov commented 7 months ago

Tested. Works.