Share this page

# 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

Copy code

    public void setMaxLength() {

            int maxLen = LrJposChannel.getMaxPacketLength();
            if (maxLen > 5000) {
                LrJposChannel.setMaxPacketLength(5000);
            }
    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: