tojocky / node-printer

Native node.js printer
1.51k stars 436 forks source link

How to get response from device? Not job status #314

Closed d-0-s-t closed 1 year ago

d-0-s-t commented 2 years ago

Hi,

We have been using this library to plot on plotting devices in "raw" format and its been great. Sometimes while using the app the plotters go into sleep mode and issuing print from the app results in incorrect plotting. The plotter's documentation provides a specific command to query its status, which we can issue with "raw" format just like regular plots, but how do we get the response from the plotting device?

The library's API allows us to check job statuses but not direct responses from the device. Can this be possible by modifying some part of the native code. Any starting points are welcome. There are other libraries that allow to open direct connection with the USB device but they have driver dependencies, which we want to avoid.

Thanks a lot for making this library available. It has helped us in our application development.

d-0-s-t commented 1 year ago

I understand this library may not be intended to do such a task. Ended up writing a native plugin.