Share this page

# LrJposChannel.setMaxPacketLength

Sets the maximum length that a package may have.

`public static void setMaxPacketLength(int maxPacketLength)`

Note: If the value is not set manually, the default value is 100,000.

## Parameters

- maxPacketLength: The maximum length for a package that can be sent through this channel.

## Return values

This function does not return any values.

## 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: