escpos-php
escpos-php copied to clipboard
connect to sunmi inner Bluetooth printer
trafficstars
How we can connect to sunmi inner Bluetooth printer?
Hi!
I use a Sunmi T2 mini with the rawbt app. It's possible via RawbtPrintConnector from a web page (see examples) or NetworkPrintConnector using the LanShare settings (quick manual see here).
Notice: Referring to the SUNMI Printer Developer Documentation you have to send 0x1c, 0x26, 0x1c, 0x43, 0xff to print unicode characters (e.g. german umlaute and € sign).
$printer->selectPrintMode();
$connector->write("\x1c\x26\x1c\x43\xff");
$printer->textRaw("öäü €");