Switch to IPv4 zeroconf, add test framework with discovery test, fix serial enumeration

This commit is contained in:
Ian Gulliver
2026-04-07 06:58:39 +09:00
parent b8c0e6be66
commit e60479bad8
14 changed files with 308 additions and 33 deletions

View File

@@ -3,6 +3,7 @@ package client
import (
"fmt"
"io"
"strings"
"time"
"go.bug.st/serial"
@@ -16,7 +17,7 @@ func ListSerial() ([]string, error) {
}
var result []string
for _, p := range ports {
if p.IsUSB {
if p.IsUSB && p.VID == "2E8A" && strings.HasPrefix(p.Name, "/dev/cu.") {
result = append(result, p.Name)
}
}