Hello,
new SDK (RUT9_R_GPL_00.07.03) contains libmodbus + couple of patches.
One of them changes the interface to original libmodbus => not possible to compile previously developed software.
...
-MODBUS_API int modbus_read_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest);
-MODBUS_API int modbus_read_input_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest);
+MODBUS_API int modbus_read_registers(modbus_t *ctx, int addr, int nb, uint8_t *dest);
+MODBUS_API int modbus_read_input_registers(modbus_t *ctx, int addr, int nb, uint8_t *dest);
...
How to keep original libmodbus in a build system and properly link the software ?
thank you,
A.B.