Package com.zebra.sdk.printer
Interface ToolsUtilLinkOs
- All Known Subinterfaces:
ZebraPrinterLinkOs
public interface ToolsUtilLinkOs
Utility class for performing Link-OS printer actions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSend the print directory label command to the printer.voidSend the print network configuration command to the printer.voidSends the network reset command to the printer.voidresetNetworkProtected(String authPassword) Sends the network reset command to the printer on protected mode.voidresetProtected(String authPassword) Sends the appropriate reset command to the printer on protected mode.voidSend the restore network defaults command to the printer.voidSet the RTC time and date on the printer.
-
Method Details
-
restoreNetworkDefaults
Send the restore network defaults command to the printer.- Throws:
ConnectionException- if there is an error communicating with the printer.
-
printNetworkConfigurationLabel
Send the print network configuration command to the printer.- Throws:
ConnectionException- if there is an error communicating with the printer.
-
printDirectoryLabel
Send the print directory label command to the printer.- Throws:
ConnectionException- if there is an error communicating with the printer.
-
resetNetwork
Sends the network reset command to the printer.- Throws:
ConnectionException- if there is an error communicating with the printer.
-
setClock
Set the RTC time and date on the printer. AccepteddateTimevalues include date (e.g. "MM-dd-yyyy"), time (e.g. "HH:mm:ss"), or both (e.g. "MM-dd-yyyy HH:mm:ss").- Parameters:
dateTime- date and or time in the proper format (MM-dd-yyyy, HH:mm:ss, or MM-dd-yyyy HH:mm:ss)- Throws:
ConnectionException- if there is an error communicating with the printer.ZebraIllegalArgumentException- if the format ofdateTimeis invalid.
-
resetProtected
Sends the appropriate reset command to the printer on protected mode.
An authentication password is provided to the printer in protected mode. The method constructs a JSON payload for authentication and sends it to the printer.
- Parameters:
authPassword- the authentication password to be sent to the printer for protected mode reset- Throws:
ConnectionException- if there is an issue communicating with the printer (e.g.the connection is not open, or the printer returns an error response.)ZebraIllegalArgumentException
-
resetNetworkProtected
void resetNetworkProtected(String authPassword) throws ConnectionException, ZebraIllegalArgumentException Sends the network reset command to the printer on protected mode.An authentication password is provided to the printer in protected mode. The method constructs a JSON payload for authentication and sends it to the printer.
- Parameters:
authPassword- the authentication password to be sent to the printer for protected mode reset- Throws:
ConnectionException- if there is an issue communicating with the printer (e.g.the connection is not open, or the printer returns an error response.)ZebraIllegalArgumentException
-