Skip to content

modbus_send_raw_request(), const correctness #479

Description

@franzhollerer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions