Open ivanbazina opened 4 years ago
Should maxDataPacketSize be set to maxPacketSize - 2 because checksum length is 2 and it is also calculated in packet size?
The "Package Length" in the package is described as: "Refers to the length of package content (command packets and data packets) plus the length of Checksum( 2 bytes)." If maxDataPacketSize configured for sensor is 32, then the checksum length will be 34 for full size packages. Have confirmed this by dumping package to log file.
Querstion in comment on line 1394: Should maxDataPacketSize be set to maxPacketSize - 2 because checksum length is 2 and it is also calculated in packet size?