Open andarm opened 6 years ago
You need to put read in a loop. Use the third byte to calculate total length.
If you need something that also takes timing into consideration and handles more opcodes, you can check out my code here https://github.com/xiegeo/modbusone/blob/master/packet_reader.go
Thanks ,I got it.
run on window
used modusslave-tool test .