-
Notifications
You must be signed in to change notification settings - Fork 8
VibeCoded an application which shares the internal Thermal printer over the network #29
Description
I only recently purchased one of these devices hoping to print labels, however, found that the only real option from stories online was to pay money to a website which didn't work, reach out to a whatsapp to purchase, only for it not to work until to reached out again to get the application to activate.
Thought F that, so created my own app free for anyone to use, install and upon opening tap start printer share.
This connects to the internal printer via serial and shares it out via RAW protocol on port 9100.
Connect to it from your computer and pick the appropriate ESC/POS driver.
In my case Linux CUPS, create printer via CLI to create a RAW printer:
Replace PRINTER_NAME with preferred name of new printer.
Replace ANDROID_IP with the IP of the citaq H10.
sudo lpadmin -x PRINTER_NAME 2>/dev/null
sudo lpadmin -p PRINTER_NAME -E -v socket://ANDROID_IP:9100 -m raw
Now you can print from any client to the printer directly. Link below