modbus_get_indication_timeout.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. modbus_get_indication_timeout(3)
  2. ================================
  3. NAME
  4. ----
  5. modbus_get_indication_timeout - get timeout used to wait for an indication (request received by a server).
  6. SYNOPSIS
  7. --------
  8. *int modbus_get_indication_timeout(modbus_t *'ctx', uint32_t *'to_sec', uint32_t *'to_usec');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_get_indication_timeout()* function shall store the timeout interval
  12. used to wait for an indication in the _to_sec_ and _to_usec_ arguments.
  13. Indication is the term used by the Modbus protocol to designate a request
  14. received by the server.
  15. The default value is zero, it means the server will wait forever.
  16. RETURN VALUE
  17. ------------
  18. The function shall return 0 if successful. Otherwise it shall return -1 and set
  19. errno.
  20. EXAMPLE
  21. -------
  22. [source,c]
  23. -------------------
  24. uint32_t to_sec;
  25. uint32_t to_usec;
  26. /* Save original timeout */
  27. modbus_get_indication_timeout(ctx, &to_sec, &to_usec);
  28. -------------------
  29. SEE ALSO
  30. --------
  31. linkmb:modbus_set_indication_timeout[3]
  32. linkmb:modbus_get_response_timeout[3]
  33. linkmb:modbus_set_response_timeout[3]
  34. AUTHORS
  35. -------
  36. The libmodbus documentation was written by Stéphane Raimbault
  37. <stephane.raimbault@gmail.com>