-
Split the original modbus_receive function in two functions to avoid the strange -1 value to ignore the sockfd argument.
-
These functions have no meaning in RTU so it's better to specialize the names and remove them from the backend. - remove the functions from the backend - update tests to handle RTU mode (master and slave) - add command line options to tests (rtu or tcp)
-
All private functions and constants are now prefixed by _. The modbus protocol uses entry points to call specific functions.