Skip to main content
Skip table of contents

serial_set_inter_byte_timeout(ser, timeout=None)

기능

포트에 읽기/쓰기를 수행할 때 바이트 간(inter-byte)timeout을 설정합니다.

인수

인수명자료형기본값설명

ser

serial.Serial

-

Serial instance

timeout

float

None

읽기/쓰기 수행 시, 바이트 간의 timeout

  • timeout 발생 이전까지 처리된 데이터를 연속적인 데이터로 처리
  • None : inter-byte timeout을 지정하지 않음


리턴

설명

0

성공

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수의 데이터형 오류 시

예제

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.