1MODBUS_SET_INDICATIO(3)        libmodbus Manual        MODBUS_SET_INDICATIO(3)
2
3
4

NAME

6       modbus_set_indication_timeout - set timeout between indications
7

SYNOPSIS

9       void modbus_set_indication_timeout(modbus_t *ctx, uint32_t to_sec,
10       uint32_t to_usec);
11

DESCRIPTION

13       The modbus_set_indication_timeout() function shall set the timeout
14       interval used by a server to wait for a request from a client.
15
16       The value of to_usec argument must be in the range 0 to 999999.
17
18       If both to_sec and to_usec are zero, this timeout will not be used at
19       all. In this case, the server will wait forever.
20

RETURN VALUE

22       The function shall return 0 if successful. Otherwise it shall return -1
23       and set errno.
24

ERRORS

26       EINVAL
27           The argument ctx is NULL or to_usec is larger than 1000000.
28

SEE ALSO

30       modbus_get_indication_timeout(3) modbus_get_response_timeout(3)
31       modbus_set_response_timeout(3)
32

AUTHORS

34       The libmodbus documentation was written by Stéphane Raimbault
35       <stephane.raimbault@gmail.com>
36
37
38
39libmodbus v3.1.7                  07/20/2023           MODBUS_SET_INDICATIO(3)
Impressum