modbus_set_debug.txt 856 B

12345678910111213141516171819202122232425262728293031323334353637
  1. modbus_set_debug(3)
  2. ===================
  3. NAME
  4. ----
  5. modbus_set_debug - set debug flag of the context
  6. SYNOPSIS
  7. --------
  8. *void modbus_set_debug(modbus_t *'ctx', int 'boolean');*
  9. DESCRIPTION
  10. -----------
  11. The _modbus_set_debug()_ function shall set the debug flag of the *modbus_t*
  12. context by using the argument 'boolean'. When the 'boolean' value is set to
  13. 'TRUE', many verbose messages are displayed on stdout and stderr. For example,
  14. this flag is useful to display the bytes of the Modbus messages.
  15. [verse]
  16. ___________________
  17. [00][14][00][00][00][06][12][03][00][6B][00][03]
  18. Waiting for a confirmation...
  19. <00><14><00><00><00><09><12><03><06><02><2B><00><00><00><00>
  20. ___________________
  21. RETURN VALUE
  22. ------------
  23. There is no return values.
  24. AUTHORS
  25. -------
  26. The libmodbus documentation was written by Stéphane Raimbault
  27. <stephane.raimbault@gmail.com>