I have made two pull requests to add some other funcionalities that I was missing.
First: print multtiple labels. I have made a simple check against multiple ^XZ terminator. Its very simple: zpl string is splited into multiple requests separated by each ^XZ terminator.
Second: keep tcp connection alive. Its useful to emulate a "virtual" com port. I use socat on Linux to accomplish that, like this:
#!/bin/bash
while true; do
echo "/dev/virtualcom0 (115200) -> tcp:localhost:9100"
sudo socat -s pty,link=/dev/virtualcom0,raw,group=dialout,perm-late=777,b115200 tcp:localhost:9100
done
With that I can connect to a virtual com port "/dev/virtualcom0" and send ZPL string through serial connection (cool!).
Helllo sbinkert,
I have made two pull requests to add some other funcionalities that I was missing.
First: print multtiple labels. I have made a simple check against multiple ^XZ terminator. Its very simple: zpl string is splited into multiple requests separated by each ^XZ terminator.
Second: keep tcp connection alive. Its useful to emulate a "virtual" com port. I use socat on Linux to accomplish that, like this:
With that I can connect to a virtual com port "/dev/virtualcom0" and send ZPL string through serial connection (cool!).
Tks for your work.