modbus_receive man page

modbus_receive — receive a indication request

Synopsis

int modbus_receive(modbus_t *ctx, uint8_t *req);

Description

The modbus_receive() function shall receive an indication request from the socket of the context ctx. This function is used by Modbus slave/server to receive and analyze indication request sent by the masters/clients.

If you need to use another socket or file descriptor than the one defined in the context ctx, see the function modbus_set_socket(3).

Return Value

The modbus_receive() function shall store the indication request in req and return the request length if sucessful. Otherwise it shall return -1 and set errno.

See Also

modbus_set_socket(3) modbus_reply(3)

Authors

The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com[1]>

Notes

1.

stephane.raimbault@gmail.com

mailto:stephane.raimbault@gmail.com

Referenced By

libmodbus(7), modbus_receive_from(3).

04/02/2014 libmodbus 3.0.6 Libmodbus Manual