Open shema-ryan opened 2 years ago
Hey @shema-ryan i appear to have same issue with you, and then when i change the code to use generator.
from esc_pos_utils (instead using printer.
every command) and then after that call printer.rawBytes(bytes)
like this example
List<int> bytes = [];
bytes += generator.text("Test", styles: const PosStyles(align: PosAlign.center), linesAfter: 2);
bytes += generator.text("Test 2", styles: const PosStyles(align: PosAlign.center), linesAfter: 2);
bytes += generator.cut();
printer.rawBytes(bytes);
there is no random stop again after using this workaround
PLATFORM : WINDOWS APPLICATION Have been able to print first few receipt using an Ethernet cable but the fifth is always printed in halves . have to followed your example but still wasn't successfully.