1 # modbus_rtu_set_rts_delay
5 modbus_rtu_set_rts_delay - set the RTS delay in RTU
10 int modbus_rtu_set_rts_delay(modbus_t *ctx, int us);
15 The `modbus_rtu_set_rts_delay()` function shall set the Request To Send delay
16 period of the libmodbus context 'ctx'.
18 This function can only be used with a context using a RTU backend.
22 The `modbus_rtu_set_rts_delay()` function shall return 0 if successful.
23 Otherwise it shall return -1 and set errno.
27 - *EINVAL*, the libmodbus backend is not RTU or a negative delay was specified.
31 - [modbus_rtu_get_rts_delay](modbus_rtu_get_rts_delay.md)