modbus_get_slave.txt 664 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. modbus_get_slave(3)
  2. ===================
  3. NAME
  4. ----
  5. modbus_get_slave - get slave number in the context
  6. SYNOPSIS
  7. --------
  8. *int modbus_get_slave(modbus_t *'ctx');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_get_slave()* function shall get the slave number in the libmodbus
  12. context.
  13. RETURN VALUE
  14. ------------
  15. The function shall return the slave number if successful. Otherwise it shall return -1
  16. and set errno to one of the values defined below.
  17. ERRORS
  18. ------
  19. *EINVAL*::
  20. The libmodbus context is undefined.
  21. SEE ALSO
  22. --------
  23. linkmb:modbus_set_slave[3]
  24. AUTHORS
  25. -------
  26. The libmodbus documentation was written by Stéphane Raimbault
  27. <stephane.raimbault@gmail.com>