handle packet fragmentation
Added
- Added functions to check is received data is complete/error Modbus TCP packet (PR #63)
Changed
- Changed
StreamHandler
to read data until complete packet is received. Previously we read only once from stream
and naively assumed that Modbus TCP packet can not be fragmented over multiple TCP packets/ multiple stream reads.
This fixed #61.