Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Listing avaible ports pyserial

import serial.tools.list_ports
ports = serial.tools.list_ports.comports()

for port, desc, hwid in sorted(ports):
        print("{}: {} [{}]".format(port, desc, hwid))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Listing #avaible #ports #pyserial
ADD COMMENT
Topic
Name
4+1 =