I followed your code, but connect function seems not working correctly.
below is my code.
var connected=await EscPos.connect("192.168.1.18", 9100);
alert("connection status:"+connected)
Even though i did not connect printer, it is always returnning true.
And also, from your try catch statement, can't catch error in catch section.
I used Start-100 Printer for this.
I followed your code, but connect function seems not working correctly. below is my code.
var connected=await EscPos.connect("192.168.1.18", 9100); alert("connection status:"+connected)
Even though i did not connect printer, it is always returnning true. And also, from your try catch statement, can't catch error in catch section. I used Start-100 Printer for this.