serialport / bindings-cpp

The C++ bindings for the node serialport project.
MIT License
22 stars 42 forks source link

Don't filter out USB serial printers #169

Closed skylarmt closed 1 month ago

skylarmt commented 9 months ago

Many label printers use text-based protocols (ZPLII, EPL, TSPL2, etc) and show up as /dev/usb/lpX.

reconbot commented 1 month ago

They're not serial devices though and most of the settings won't work. You should be able to open it as a file and write and read from it. All the parsers and whatnot will work with data from a file stream.

skylarmt commented 1 month ago

Sure they aren't always technically "real" serial ports, but it would be nice if they could be discovered and listed with this library.