new Status(raw)
Represents a Zebra Printer Status, providing an interface for parsing and representing the status of the printer
Client API Level 2Parameters:
Name | Type | Description |
---|---|---|
raw |
string | The status response from the printer to be parsed |
Properties:
Name | Type | Description |
---|---|---|
paperOut |
boolean | True if the printer is in a paper out state, false otherwise |
paused |
boolean | True if the printer is in a paused state, false otherwise |
headOpen |
boolean | True if the printer is in a head open state, false otherwise |
ribbonOut |
boolean | True if the printer is in a ribbon out state, false otherwise |
Methods
getMessage() → {string}
Returns a string describing the state of the printer in english.
Returns:
The description of the status in english
- Type
- string
isPrinterReady() → {boolean}
Returns whether the printer is ready to print or not.
Returns:
True if the printer is ready to print, false otherwise
- Type
- boolean