Query: modbus_set_response_timeout
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MODBUS_SET_RESPONSE_(3) Libmodbus Manual MODBUS_SET_RESPONSE_(3)NAMEmodbus_set_response_timeout - set timeout for responseSYNOPSISvoid modbus_set_response_timeout(modbus_t *ctx, struct timeval *timeout);DESCRIPTIONThe modbus_set_response_timeout() function shall set the timeout interval used to wait for a response. If the waiting before receiving the response is longer than the given timeout, an error will be raised.RETURN VALUEThere is no return values.EXAMPLEstruct timeval old_response_timeout; struct timeval response_timeout; /* Save original timeout */ modbus_get_response_timeout(ctx, &old_response_timeout); /* Define a new and too short timeout! */ response_timeout.tv_sec = 0; response_timeout.tv_usec = 0; modbus_set_response_timeout(ctx, &response_timeout);SEE ALSOmodbus_get_response_timeout(3) modbus_get_byte_timeout(3) modbus_set_byte_timeout(3)AUTHORSThe libmodbus documentation was written by Stephane Raimbault <stephane.raimbault@gmail.com[1]>NOTES1. stephane.raimbault@gmail.com mailto:stephane.raimbault@gmail.com libmodbus 3.0.3 05/26/2012 MODBUS_SET_RESPONSE_(3)
Related Man Pages |
---|
modbus_read_registers(3) - debian |
modbus_get_response_timeout(3) - debian |
modbus_new_tcp_pi(3) - debian |
modbus_set_response_timeout(3) - debian |
modbus_set_error_recovery(3) - debian |
Similar Topics in the Unix Linux Community |
---|
usage of setsockopt() |
Send a mail to multiple users |