I am involved in project where I am implementing a gateway functionality in C by using libmodbus library. On the server side I am trying to read a device using modbus_read_i