LrJposChannel.getMaxPacketLength
Gets the maximum length that a package may have.
public static int getMaxPacketLength()
Note: If the value is not set manually using LrJposChannel.setMaxPacketLength, the default value is 100,000.
Return values
This function returns an integer that represents the maximum length of a package.
Example
public void setMaxLength() {
int maxLen = LrJposChannel.getMaxPacketLength();
if (maxLen > 5000) {
LrJposChannel.setMaxPacketLength(5000);
}
}