modbus_receive.txt 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 than the one defined in the context 'ctx', see
  15. the function linkmb:modbus_receive_from[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_receive_from[3]
  24. AUTHORS
  25. -------
  26. The libmodbus documentation was written by Stéphane Raimbault
  27. <stephane.raimbault@gmail.com>