modbus_get_slave(3)

modbus_get_slave3

Get slave number in the context

Usage

int modbus_get_slave(modbus_t *ctx);

Overview

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.

Releases

2 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11
  2. 12

Authors

The libmodbus documentation was written by Stéphane Raimbault <[email protected]>

From libmodbus-dev 3.1.6-2.1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.