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

NAME

6       modbus_get_slave - get slave number in the context
7

SYNOPSIS

9       int modbus_get_slave(modbus_t *ctx);
10

DESCRIPTION

12       The modbus_get_slave() function shall get the slave number in the
13       libmodbus context.
14

RETURN VALUE

16       The function shall return the slave number if successful. Otherwise it
17       shall return -1 and set errno to one of the values defined below.
18

ERRORS

20       EINVAL
21           The libmodbus context is undefined.
22

SEE ALSO

24       modbus_set_slave(3)
25

AUTHORS

27       The libmodbus documentation was written by Stéphane Raimbault
28       <stephane.raimbault@gmail.com>
29
30
31
32libmodbus v3.1.6                  02/04/2022               MODBUS_GET_SLAVE(3)
Impressum