modbus_receive_confirmation.txt 1015 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. modbus_receive_confirmation(3)
  2. ==============================
  3. NAME
  4. ----
  5. modbus_receive_confirmation - receive a confirmation request
  6. SYNOPSIS
  7. --------
  8. *int modbus_receive_confirmation(modbus_t *'ctx', uint8_t *'rsp');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_receive_confirmation(*_ function shall receive a request via the
  12. socket of the context _ctx_. This function must be used for debugging purposes
  13. because the received response isn't checked against the initial request. This
  14. function can be used to receive request not handled by the library.
  15. RETURN VALUE
  16. ------------
  17. The function shall store the confirmation request in _rsp_ and return the
  18. response length if sucessful. The returned request length can be zero if the
  19. indication request is ignored (eg. a query for another slave in RTU
  20. mode). Otherwise it shall return -1 and set errno.
  21. SEE ALSO
  22. --------
  23. linkmb:modbus_send_raw_request[3]
  24. AUTHORS
  25. -------
  26. The libmodbus documentation was written by Stéphane Raimbault
  27. <stephane.raimbault@gmail.com>