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 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: