Can you please change the function signature for modbus_send_raw_request() from
MODBUS_API int modbus_send_raw_request(modbus_t *ctx, uint8_t *raw_req, int raw_req_length);
to
MODBUS_API int modbus_send_raw_request(modbus_t *ctx, const uint8_t *raw_req, int raw_req_length);
The function does not change the content of the passed buffe raw_reqr, therefore it should be const qualified.
Can you please change the function signature for modbus_send_raw_request() from
to
The function does not change the content of the passed buffe raw_reqr, therefore it should be const qualified.