You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* From sunmi docs in https://docs.sunmi.com/en-US/cdixeghjk491/xdideghjk524
* Get the printer’s latest status
* Function: String updatePrinterState ()
* Return value:
* 1 → Printer is under normal operation
* 2 → Printer is under preparation
* 3 → Communication is abnormal
* 4 → Out of paper
* 5 → Overheated
* 6 → Cover is open
* 7 → Cutter error
* 8 → Cutter recovered
* 9 → Black mark not detected
* 505 → Printer not detected
* 507 → Printer firmware update failed
* Note 1: these return values are applicable to all SUNMI devices, but some status can’t be obtained due to hardware configuration. For example, cover open detection is not applicable to handheld devices.