Skip to content

hs0zip/serialfinder

Repository files navigation

Serial Finder

Description

This package finds the USB serial devices connected to the computer, with the vendor id, product id, and serial number.

It can filter the devices by the vendor id and product id, or leave them empty to get all the devices.

Supported Platforms

  • Windows
  • Linux
  • MacOS

Usage

package main

import (
    "fmt"
    "github.com/hs0zip/serialfinder"
)

func main()
{
    devices, err := serialfinder.GetSerialDevices("1A86", "55D4")
    if err != nil {
        fmt.Println(err)
    }

    for _, device := range devices {
        fmt.Println(device)
    }
}

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages