logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

modbus_get_slave - get slave number in the context

Authors

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

libmodbus v3.1.6                                   12/09/2019                                MODBUS_GET_SLAVE(3)

Description

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

Errors

EINVAL
           The libmodbus context is undefined.

Name

       modbus_get_slave - get slave number in the 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.

See Also

modbus_set_slave(3)

Synopsis

intmodbus_get_slave(modbus_t*ctx);

See Also