Open cbrake opened 4 years ago
closing this as this project appears to not be maintained. I started a new modbus library that will implement both client and server functionality:
https://github.com/simpleiot/simpleiot/tree/master/modbus
Examples:
https://github.com/simpleiot/simpleiot/blob/master/modbus/rtu-end-to-end_test.go https://github.com/simpleiot/simpleiot/blob/master/cmd/modbus-client/main.go https://github.com/simpleiot/simpleiot/blob/master/cmd/modbus-server/main.go
I have created a simple server and client apps:
https://github.com/simpleiot/simpleiot/blob/feature-modbus/cmd/modbus-client/main.go
https://github.com/simpleiot/simpleiot/blob/feature-modbus/cmd/modbus-server/main.go
When I send a packet to the server, it only ever receives one byte.
What causes the the Read() at this location:
https://github.com/tbrandon/mbserver/blob/master/servertu.go#L26
To read an entire packet, instead of just several bytes?
Thanks, Cliff