7 modbus_receive - receive an indication request
12 *int modbus_receive(modbus_t *'ctx', uint8_t *'req');*
17 The *modbus_receive()* function shall receive an indication request from the
18 socket of the context _ctx_. This function is used by Modbus slave/server to
19 receive and analyze indication request sent by the masters/clients.
21 If you need to use another socket or file descriptor than the one defined in the
22 context _ctx_, see the function linkmb:modbus_set_socket[3].
27 The function shall store the indication request in _req_ and return the request
28 length if successful. The returned request length can be zero if the indication
29 request is ignored (eg. a query for another slave in RTU mode). Otherwise it
30 shall return -1 and set errno.
35 linkmb:modbus_set_socket[3]
36 linkmb:modbus_reply[3]
41 The libmodbus documentation was written by Stéphane Raimbault
42 <stephane.raimbault@gmail.com>