Kaizen
Browse modulesPeripheralsperipherals/sharedSchemas and constants

Variable: DLE\_EOT\_QUERIES

const DLE_EOT_QUERIES: {
  offlineCause: 2;
  paper: 4;
  printer: 1;
};

Defined in: shared/peripherals/printer-status.ts:7

DLE EOT (0x10 0x04 n) real-time status queries — the lowest common denominator supported by ESC/POS printers over any byte transport. Issuing the query is a transport concern; parsing the one-byte reply is pure and lives here.

Type Declaration

offlineCause

readonly offlineCause: 2 = 2;

n=2: offline cause (cover, paper feed, error).

paper

readonly paper: 4 = 4;

n=4: paper roll sensor (low / out).

printer

readonly printer: 1 = 1;

n=1: printer status (drawer kick pin, online/offline).

On this page