1MODBUS_RECEIVE(3)              Libmodbus Manual              MODBUS_RECEIVE(3)
2
3
4

NAME

6       modbus_receive - receive a indication request
7

SYNOPSIS

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

DESCRIPTION

12       The modbus_receive() function shall receive an indication request from
13       the socket of the context ctx. This function is used by Modbus
14       slave/server to receive and analyze indication request sent by the
15       masters/clients.
16
17       If you need to use another socket or file descriptor than the one
18       defined in the context ctx, see the function modbus_set_socket(3).
19

RETURN VALUE

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

SEE ALSO

26       modbus_set_socket(3) modbus_reply(3)
27

AUTHORS

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

NOTES

33        1. stephane.raimbault@gmail.com
34           mailto:stephane.raimbault@gmail.com
35
36
37
38libmodbus 3.0.8                   07/31/2019                 MODBUS_RECEIVE(3)
Impressum