modbus_get_slave.txt
664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
modbus_get_slave(3)
===================
NAME
----
modbus_get_slave - get slave number in the context
SYNOPSIS
--------
*int modbus_get_slave(modbus_t *'ctx');*
DESCRIPTION
-----------
The *modbus_get_slave()* function shall get the slave number in the libmodbus
context.
RETURN VALUE
------------
The function shall return the slave number if successful. Otherwise it shall return -1
and set errno to one of the values defined below.
ERRORS
------
*EINVAL*::
The libmodbus context is undefined.
SEE ALSO
--------
linkmb:modbus_set_slave[3]
AUTHORS
-------
The libmodbus documentation was written by Stéphane Raimbault
<stephane.raimbault@gmail.com>