Skip to main content
Skip table of contents

serial_get_count()

기능

연결된 USB to Serial의 포트정보, 장치이름을 읽어옵니다.

리턴

값(port_info, device_name)설명

count

연결된 시리얼 포트 개수

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

인수의 값이 유효하지 않을 시

예제

PY
count = serial_get_count() # 연결된 시리얼 포트 개수 읽기

for i in range(count): 
   port_info, device_name = serial_get_info(i+1)
   tp_popup("i={}, port ={}, dev ={}".format(i, port_info, device_name))
JavaScript errors detected

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

If this problem persists, please contact our support.