A driver for control usb relay module implement with Golang. We access devices through karalabe/hid (with karalabe/hid#13 merged).
| OS | Is supported |
|---|---|
| MacOS | Yes |
| Windows | Yes |
| GNU/Linux | Yes ( No test yet ) |
go get -v -u github.com/e61983/go-usb-relay$ make test$ make# Trun On channel 1 relay.
$ release/darwin/amd64/go-usb-relay -n 1 -o
# Set SN
$ release/darwin/amd64/go-usb-relay -sn 12345