3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

serial_get_count()

Features

This function reads the number of devices connected to USB to Serial.

Return

Value (port_info, device_name)

Description

count

Number of connected serial ports

Exception

Exception

Description

DR_Error (DR_ERROR_TYPE)

Parameter data error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

Example

Python
count = serial_get_count() # read number of connected serial ports

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))

Keyword

serial / serial_ / serial_get / get_count / count