I'm very new to python and I haven't gotten very far with my code but below is what I have so far
Does anyone have any idea how I can return all com ports that are installed but not used.
import serial.tools.list_ports as port_list ports = list(port_list.comports()) for p in ports: print (p)this gives me the list of com ports that are active but I have com ports that are being installed but nothing is using it
Does anyone have any idea how I can return all com ports that are installed but not used.
Larz60+ write Sep-22-2021, 03:16 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts. Thanks
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts. Thanks