You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to use a thermal printer Dascom DT-230 with the serialport adapter. Now the printer is connected to my PC using usb but the pc detects that as a serial port
In Windows as COM4
In Linux as /dev/ttyACM0
In both cases that return Error: Port is opening
It's the code that I was testing
import{Printer}from"@node-escpos/core";importSerialfrom"@node-escpos/serialport-adapter";constdevice=newSerial("/dev/ttyACM0",{// In Windows I was put "COM4"baudRate: 115200,stopBit: 1,});constoptions={encoding: "utf-8",};constprinter=newPrinter(device,options);device.open((error)=>{if(error){console.error(error);return;}letprinter=newPrinter(device,{});printer.font("a").align("ct").style("bu").size(1,1).text("The quick brown fox jumps over the lazy dog");printer.cut().close();});
Someone can help me with that? I have been trying different packages to use escpos printers for months and I have not found any that give me results
The text was updated successfully, but these errors were encountered:
Hi! I'm trying to use a thermal printer Dascom DT-230 with the serialport adapter. Now the printer is connected to my PC using usb but the pc detects that as a serial port
In Windows as
COM4
In Linux as
/dev/ttyACM0
In both cases that return
Error: Port is opening
It's the code that I was testing
Someone can help me with that? I have been trying different packages to use escpos printers for months and I have not found any that give me results
The text was updated successfully, but these errors were encountered: