Package-level declarations
Types
The service and characteristic the printer talks on.
Why the printer did not print.
What a printer fault code means, per MultiMote/niimbluelib as labeltastic's vendored niimprint lists them.
Turns a bitmap into the printer's row packets: 0x85 for a row with ink, carrying its dot count in each third of the head, and 0x84 for blank rows. Identical neighboring rows go as one packet with a repeat count.
The two-way packet link to a printer: BLE in the app, a script in tests.
One packet of the Niimbot label printer protocol, as the printer sends and receives it: 55 55 · type · length · data · checksum · AA AA, where the checksum XORs the type, the length and every data byte.
Collects bytes from the printer's notifications and yields whole packets. A notification can carry part of a packet or several; bytes that don't start a packet are dropped until the next 55 55. A frame with a bad checksum or tail gives up only its first byte: the search resumes at its second 55, which may be the real head after a stray one.
A Niimbot D110 label printer over Bluetooth LE, on a connection of its own: nothing here reads or changes the radio's connection.
Creates a NiimbotPrinter that lives in the caller's scope.
The print sequence, as labeltastic's vendored niimprint and Meshtastic-Apple run it. Printers on protocol v3 and later print blank on the older sequence, so the version the printer reports picks the sequence.
Request types the print sequence sends. A reply's type is the request's plus an offset that depends on the request.