Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
device field in modbus_param_t is too small #11
as already predicted in the comment modbus.h, the restriction of having only 16 bytes for the device name becomes a problem when using udev-created symlinks on Linux, as they tend to be way longer than 16 bytes.
added a commit
Nov 12, 2012
I am using version 3.0.1 on Ubuntu (installed using apt-get), and long device names still seem to cause failure.
When I called my device "/dev/tty-dat3018", then when modbus_new_rtu() was called, I got the error message:
I hope that this problem is just due to the changes taking time to propagate to the Ubuntu distribution rather than another problem. For the moment I can just rename my devices to short names.