stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.33k stars 1.71k forks source link

On serial, need to modbus_free() + modbus_new() in order to change baudrate and line conf #146

Closed rvcyclo closed 10 years ago

rvcyclo commented 10 years ago

Say I am master and want to access some devices on the lines that can only talk at 9600, while others only talk at 19200. With current API's, I need to modbus_free() + modbus_new() the modbus library instance. This is an enhancement request that it it possible to change an RTU modbus line configuration with an API function, and the libmodbus library would manage close() + open() internally when this changes (not if unchanged), before next communication attempt.

stephane commented 10 years ago

I don't want to keep enhancement request in github issue tracker, could you post on mailing list for such request, please.