Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Listing available com ports with Python

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 #ports #Python
ADD COMMENT
Topic
Name
1+7 =