liulong f10848f47f
Some checks failed
test / native-os-build (macOS-latest) (push) Has been cancelled
test / native-os-build (ubuntu-latest) (push) Has been cancelled
test / native-os-build (windows-latest) (push) Has been cancelled
test / cross-os-build (freebsd amd64) (push) Has been cancelled
test / cross-os-build (linux ppc64le) (push) Has been cancelled
test / cross-os-build (openbsd 386) (push) Has been cancelled
test / cross-os-build (openbsd amd64) (push) Has been cancelled
test / cross-os-build (openbsd arm) (push) Has been cancelled
fix: 修复串口 read timeout 未生效的问题
- 将串口文件描述符设置为非阻塞模式,确保 read() 不会阻塞
- 修改 VMIN 从 1 改为 0,让 select() 正确控制读取超时
- 添加 Timeout 错误代码,超时时正确返回错误而不是 (0, nil)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 10:47:17 +08:00
2024-06-24 17:33:18 +02:00
2024-04-01 16:04:53 +02:00
2024-06-24 17:33:18 +02:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:27:44 +01:00
2024-03-18 22:25:55 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:57:58 +01:00
2024-02-20 15:57:58 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:27:44 +01:00
2024-02-20 15:57:58 +01:00

Build Status

go.bug.st/serial

A cross-platform serial port library for Go.

Documentation and examples

See the package documentation here: https://pkg.go.dev/go.bug.st/serial

go.mod transition

This library supports go.mod with the import go.bug.st/serial.

If you came from the pre-go.mod era please update your import paths from go.bug.st/serial.v1 to go.bug.st/serial to receive updates. The latest v1 release is still available using the old import path.

Credits

Thanks to all awesome contributors!

License

This software is released under the BSD 3-clause license.

Description
No description provided
Readme BSD-3-Clause 371 KiB
Languages
Go 100%