Starts monitoring the printer status.
Printer
Printer instance defined by calling new Printer(...)
.
- (status: PrinterStatus) => void
Listener function that will be called with printer status.
number
Interval in milliseconds. Default: 1000.
() => void
- Internaly uses connect, getStatus and disconnect commands.