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;
}