modbus_receive_confirmation.txt 1.0 KB

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 _modbus_receive_confirmation()_ function shall store the confirmation
  18. request in 'rsp' and return the response length if sucessful. The returned
  19. request length can be zero if the indication request is ignored (eg. a query for
  20. another slave in RTU 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>