NielsLeenheer / ReceiptPrinterEncoder

Create a set of commands that can be send to any receipt printer that supports ESC/POS, StarLine or StarPRNT
MIT License
185 stars 18 forks source link

Print ready JSON Generated #10

Closed Business360 closed 2 months ago

Business360 commented 4 months ago

Hi

The generated JSON is only the JSON code that's ready to be printed right?

We still need to write our own code to connect and send this code to the printer?

NielsLeenheer commented 4 months ago

The output of the library isn"t JSON, but yes the data it generates is ready to be send to the printer.

The code to achieve that needs to be written. That is not part of the library. I did create several libraries for sending data to the printer from the browser using WebSerial, WebBluetooth or WebUSB. But there are many ways to do that.