mhdazeem / modbus-tk

Automatically exported from code.google.com/p/modbus-tk
Other
0 stars 0 forks source link

RTU : get response length from the message #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
One thing that would be useful is to be able to receive replies with
an unknown length. This is relevant in the "Report Slave ID" function.
There are many modbus functions that have a response with
<functionCode> <byteCount> at the start, and it is possible to decode
this in the masters _recv function and use the byteCount instead of
the expected_length parameter.

Original issue reported on code.google.com by luc.jean@gmail.com on 1 Feb 2012 at 8:39