modbus_receive.txt 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. modbus_receive(3)
  2. =================
  3. NAME
  4. ----
  5. modbus_receive - receive a indication request
  6. SYNOPSIS
  7. --------
  8. *int modbus_receive(*modbus_t 'ctx', uint8_t *'req');*
  9. DESCRIPTION
  10. -----------
  11. The _modbus_receive()_ function shall receive an indication request from the
  12. socket of the context 'ctx'. This function is used by Modbus slave/server to
  13. receive and analyze indication request sent by the masters/clients.
  14. If you need to use another socket or file descriptor than the one defined in the
  15. context 'ctx', see the function linkmb:modbus_set_socket[3].
  16. RETURN VALUE
  17. ------------
  18. The _modbus_receive()_ function shall store the indication request in 'req' and
  19. return the request length if sucessful. Otherwise it shall return -1 and set
  20. errno.
  21. SEE ALSO
  22. --------
  23. linkmb:modbus_set_socket[3]
  24. linkmb:modbus_reply[3]
  25. AUTHORS
  26. -------
  27. The libmodbus documentation was written by Stéphane Raimbault
  28. <stephane.raimbault@gmail.com>