Public Member Functions | |
__init__ (self, connection=None, mgmt_comm=None, comm_descriptor=None) | |
Initializes a new instance with the given TCP, JSON, and communication descriptor object. | |
get_fault_status (self) | |
Query the printer for fault status. | |
get_printer_info (self) | |
Get printer information. | |
get_engine_status (self) | |
Query the printer for the engine status. | |
set_engine_status_listening (self, value) | |
Sets whether engine status listening is enabled. | |
set_display_status_listening (self, value) | |
Sets whether display status listening is enabled. | |
set_alert_status_listening (self, value) | |
Sets whether alert status listening is enabled. | |
Public Attributes | |
my_mgmt_id | |
engine_status_listening | |
listenerCTS | |
PrinterMonitor.PrinterMonitor.__init__ | ( | self, | |
connection = None, | |||
mgmt_comm = None, | |||
comm_descriptor = None ) |
Initializes a new instance with the given TCP, JSON, and communication descriptor object.
connection | The TCP communication object. |
mgmt_comm | The JSON communication object. |
comm_descriptor | The communication descriptor. |
PrinterMonitor.PrinterMonitor.get_engine_status | ( | self | ) |
Query the printer for the engine status.
Engine status is useful to check if printer is in a state that can print before sending a print job.
The string returned is any of the "fault", "idle", "offline", "pause", "printing", "present" (Label Present).
Implemented in PrinterMonitor.
PrinterMonitor.PrinterMonitor.get_fault_status | ( | self | ) |
Query the printer for fault status.
Fault status is used to check if printer is in a fault state that needs attention or may prevent processing of any print job.
The alert string array returned represents the alert number sent by printer at alert[0] and brief description at alert[1]
e.g. "2418" represents a "Print Head Open" alert. alert[0] = "2418"; alert[1] = "Print Head Open";
Implemented in PrinterMonitor.
PrinterMonitor.PrinterMonitor.get_printer_info | ( | self | ) |
Get printer information.
Useful for cases where want to check model, firmware version, options installed and other hardware specific details.
Implemented in PrinterMonitor.
PrinterMonitor.PrinterMonitor.set_alert_status_listening | ( | self, | |
value ) |
Sets whether alert status listening is enabled.
value | YES to enable listening, NO to disable. |
PrinterMonitor.PrinterMonitor.set_display_status_listening | ( | self, | |
value ) |
Sets whether display status listening is enabled.
value | YES to enable listening, NO to disable. |
PrinterMonitor.PrinterMonitor.set_engine_status_listening | ( | self, | |
value ) |
Sets whether engine status listening is enabled.
value | YES to enable listening, NO to disable. |
PrinterMonitor.PrinterMonitor.engine_status_listening |
PrinterMonitor.PrinterMonitor.listenerCTS |
PrinterMonitor.PrinterMonitor.my_mgmt_id |