paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
50 stars 39 forks source link

how to reconnect printer before print? #18

Closed rizwanbao closed 2 years ago

rizwanbao commented 2 years ago

how we can connect printer before print for avoiding connection reset and broken pipe issue like if there is any way to calling this private EscPosPrinter getPrinter(CallbackContext callbackContext, JSONObject data) i think problem will be solved

patrickbussmann commented 2 years ago

Disconnect -> https://github.com/paystory-de/thermal-printer-cordova-plugin#disconnectprinterdata-successcallback-errorcallback