Skip to main content
Skip table of contents

serial_state(ser)

기능

Serial 통신 포트의 상태를 리턴합니다.

인수

인수명자료형기본값설명

ser

serial.Serial

-

Serial instance

리턴

설명

1

Serial 포트 opened 상태

0

Serial 포트 closed 상태

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수의 데이터형 오류 시

예제

PY
ser = serial_open(port="COM", baudrate=115200, bytesize=DR_EIGHTBITS, 
        parity=DR_PARITY_NONE, stopbits=DR_STOPBITS_ONE)

state = serial_state(ser)

serial_close(ser)
JavaScript errors detected

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

If this problem persists, please contact our support.