Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MODBUS_RECEIVE(3)	       libmodbus Manual		     MODBUS_RECEIVE(3)

NAME
       modbus_receive -	receive	an indication request

SYNOPSIS
       int modbus_receive(modbus_t *ctx, uint8_t *req);

DESCRIPTION
       The modbus_receive() function shall receive an indication request from
       the socket of the context ctx. This function is used by Modbus
       slave/server to receive and analyze indication request sent by the
       masters/clients.

       If you need to use another socket or file descriptor than the one
       defined in the context ctx, see the function modbus_set_socket(3).

RETURN VALUE
       The function shall store	the indication request in req and return the
       request length if successful. The returned request length can be	zero
       if the indication request is ignored (eg. a query for another slave in
       RTU mode). Otherwise it shall return -1 and set errno.

SEE ALSO
       modbus_set_socket(3) modbus_reply(3)

AUTHORS
       The libmodbus documentation was written by StA(C)phane Raimbault
       <stephane.raimbault@gmail.com>

libmodbus v3.1.6		  03/01/2021		     MODBUS_RECEIVE(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=modbus_receive&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help