1MODBUS_GET_SLAVE(3) libmodbus Manual MODBUS_GET_SLAVE(3)
2
3
4
6 modbus_get_slave - get slave number in the context
7
9 int modbus_get_slave(modbus_t *ctx);
10
12 The modbus_get_slave() function shall get the slave number in the
13 libmodbus context.
14
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
20 EINVAL
21 The libmodbus context is undefined.
22
24 modbus_set_slave(3)
25
27 The libmodbus documentation was written by Stéphane Raimbault
28 <stephane.raimbault@gmail.com>
29
30
31
32libmodbus v3.1.7 07/20/2023 MODBUS_GET_SLAVE(3)