Serve polls the master over UART and pushes live state via WebSocket; reopens the serial port when the device is unplugged and comes back. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
244 B
Modula-2
15 lines
244 B
Modula-2
module powerpod/gotool
|
|
|
|
go 1.26.2
|
|
|
|
require (
|
|
github.com/gorilla/websocket v1.5.3
|
|
go.bug.st/serial v1.6.4
|
|
google.golang.org/protobuf v1.36.11
|
|
)
|
|
|
|
require (
|
|
github.com/creack/goselect v0.1.2 // indirect
|
|
golang.org/x/sys v0.19.0 // indirect
|
|
)
|