This commit is contained in:
qaq
2025-06-17 12:17:33 +08:00
parent 4a6b2c8e0f
commit 9fa968d07c
648 changed files with 64968 additions and 1621 deletions
@@ -0,0 +1,28 @@
//go:build !windows && !linux
// +build !windows,!linux
package serial
import (
"errors"
"time"
)
func openPort(name string, baud int, databits byte, parity Parity, stopbits StopBits, readTimeout time.Duration) (p *Port, err error) {
return nil, errors.New("unsupported platform")
}
type Port struct {
}
func (p *Port) Read(b []byte) (n int, err error) {
return
}
func (p *Port) Write(b []byte) (n int, err error) {
return
}
func (p *Port) Close() (err error) {
return
}