modbus_get_slave - Man Page
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
Authors
The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>
Referenced By
07/18/2024 libmodbus v3.1.7 libmodbus Manual