lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

Cashdrawer complete FAIL #353

Open akihabaras opened 3 years ago

akihabaras commented 3 years ago

Hi guys, I have tried everything I could think of, to trigger the cashdrawer and kick open it without printing, but it just ignores me! Can you please help me with this?

SpaceDux commented 3 years ago
  Print_OpenDraw: function()
  {
    console.log("Opening Cashdraw.")
    try {
      device.open(function() {
        printer
        .cashdraw()
        .close();
      });
    } catch (e) {
      thisclass.alert("Error: "+e);
    }
  },

Exact extract from one of my functions that issues a cash draw kick.

Hope this helps.