Skip to main content
Skip table of contents

serial_set_inter_byte_timeout(ser, timeout=None)

Features

This function sets the timeout between the bytes (inter-byte) when reading and writing to the port.

Parameters

Parameter NameData TypeDefault ValueDescription

ser

serial.Serial

-

Serial instance

timeout

float

None

Timeout between bytes during reading or writing

  • Continued processing of data that was processed before the timeout
  • None: inter-byte timeout not specified

Return

ValueDescription

0

Success

Exception

ExceptionDescription

DR_Error (DR_ERROR_TYPE)

Parameter data type error occurred

Example

PY
ser = serial_open(port="COM", baudrate=115200, bytesize=DR_EIGHTBITS, 
        parity=DR_PARITY_NONE, stopbits=DR_STOPBITS_ONE)
 
res = serial_set_inter_byte_timeout(ser, 0.1)
 
serial_close(ser)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.