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

modbus_set_slave(3)

Authors

The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>

Referenced By

modbus_set_slave(3).

01/25/2024 libmodbus v3.1.7 libmodbus Manual