Share this page

# LrJposChannel.setPackager

Sets the packager used for packing and unpacking messages.

`public static void setPackager(ISOPackager packager)`

## Parameters

- packager: The ISOPackager instance to use for packing/unpacking messages.

## Return values

This function does not return any values.

## Example

Copy code

    public int init() throws Throwable {

            AsciiPackager2003 pack = new AsciiPackager2003();
            LrJposChannel.initChannel(LrJposChannel.ChannelType.ASCIIChannel);
            LrJposChannel.setHost("localhost", 8000);
            LrJposChannel.setPackager(pack);

            return 0;
    }

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: