LrJposChannel.getPackager
Gets the packager that is used when sending or receiving messages.
public static ISOPackager getPackager()
Return values
This function returns a string that represents the packager used for sending or receiving messages.
Returns null if the channel is not initialized.
Example
public void getInfo() {
String host = LrJposChannel.getHost();
int port = LrJposChannel.getPort();
ISOPackager packager = LrJposChannel.getPackager();
lr.output_message("Channel properties: host - " + host + " port - " + port);
if (packager != null) {
lr.output_message("Packager description: " + packager.getDescription());
}
else {
lr.output_message("Packager is not set");
}
}