table of contents
MODBUS_SET_ERROR_REC(3) | Libmodbus Manual | MODBUS_SET_ERROR_REC(3) |
NAME¶
modbus_set_error_recovery - set the error recovery modeSYNOPSIS¶
int modbus_set_error_recovery(modbus_t *ctx, modbus_error_recovery_mode error_recovery);DESCRIPTION¶
The modbus_set_error_recovery() function shall set the error recovery mode to apply when the connection fails or the byte received is not expected. The argument error_recovery may be bitwise-or’ed with zero or more of the following constants.RETURN VALUE¶
The modbus_set_error_recovery() function shall return 0 if successful. Otherwise it shall return -1 and set errno to one of the values defined below.ERRORS¶
EINVALThe value of the argument
error_recovery is not positive.
EXAMPLE¶
modbus_set_error_recovery(ctx, MODBUS_ERROR_RECOVERY_LINK | MODBUS_ERROR_RECOVERY_PROTOCOL);
AUTHORS¶
The libmodbus documentation was written by Stéphane Raimbault < stephane.raimbault@gmail.com[1]>NOTES¶
- 1.
- stephane.raimbault@gmail.com
mailto:stephane.raimbault@gmail.com
05/26/2012 | libmodbus 3.0.3 |