repositorypackage
0.1.2
Repository: https://github.com/samuelventura/go-modbus.git
Documentation: pkg.go.dev
# README
go-modbus
- Master
- TCP Protocol
- RTU Protocol
- TCP Transport
- Connect and Read timeout
- Discard before send
- Test: Address and function sweept
- Exception custom error
- Serial Transport: separated package
- Model: Basic map model
- Disable trace in production
- Slave: Bootstrap only
- Environ controlled trace
- Public importable spec
- Out of bounds checks
- Special function codes
- Special data types
- Verify and narrow public api
- Test: IO error recoveries
- Test: In the middle breaks
Helpers
(cd spec; go test)
(cd spec; GO_MODBUS_TRACE=true go test)
(cd sample; go run .)
Notes
- Responses don't have enough info to be fully parsed. A ReadDis for example wont packet count but only the total bytes making it dependant on knowing the original intended count.