Library for MyrtIO protocol support in Golang.
Allows you to format and parse messages, as well as use ready-made transports.
- Serial
UDP— not ready yet
func main() {
port, err := serial.New(serialPath, serialBaudRate)
if err != nil {
log.Panic(err)
}
// Send ping
response, err := m.port.RunAction(&myrtio.Message{
Feature: 0,
Action: 0,
})
if err != nil {
log.Printf("Error: %v\n", err.Error())
}
defer port.Close()
}