TypeError: this.adapter.read is not a function
at Printer.getStatuses (/home/kiosk/kiosk-hub/node_modules/escpos/index.js:915:16)
at /home/kiosk/kiosk-hub/routes/index.js:453:11
at Layer.handle [as handle_request] (/home/kiosk/kiosk-hub/node_modules/express/lib/router/layer.js:95:5)
at next (/home/kiosk/kiosk-hub/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/kiosk/kiosk-hub/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/kiosk/kiosk-hub/node_modules/express/lib/router/layer.js:95:5)
at /home/kiosk/kiosk-hub/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/kiosk/kiosk-hub/node_modules/express/lib/router/index.js:335:12)
at next (/home/kiosk/kiosk-hub/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/home/kiosk/kiosk-hub/node_modules/express/lib/router/index.js:174:3)
Using a usb printer adapter and trying to fetch the status of the printer.
Here is my code creating the printer:
Here is the code:
This fails: