Open quy1403 opened 5 years ago
Any luck with this?
Use this await BluetoothEscposPrinter.cutOnePoint()
any luck with this? (2)
i have this error : BluetoothEscposPrinter.cutOnePoint() is not a function .BluetoothEscposPrinter.cutOnePoint is undefined . Any help !!
any luck with this? (2) did you find the answer ?
Hi. I see this method in RNBluetoothEscposPrinterModule as it was a year ago.
I imported lib like this and used await BluetoothEscposPrinter.cutOnePoint().
May be you need to properly initialise the library. The only way I could print was to reinit on every buffer print. I mean I really needed to find my bluetooth device with react-native-ble-manager every time and init() the library to print my buffer properly.
Hi. I see this method in RNBluetoothEscposPrinterModule as it was a year ago.
I imported lib like this and used await BluetoothEscposPrinter.cutOnePoint().
May be you need to properly initialise the library. The only way I could print was to reinit on every buffer print. I mean I really needed to find my bluetooth device with react-native-ble-manager every time and init() the library to print my buffer properly.
Please can you send me your code source , i try but it did not work and i did not work with ble manager
Hi. I see this method in RNBluetoothEscposPrinterModule as it was a year ago. I imported lib like this and used await BluetoothEscposPrinter.cutOnePoint(). May be you need to properly initialise the library. The only way I could print was to reinit on every buffer print. I mean I really needed to find my bluetooth device with react-native-ble-manager every time and init() the library to print my buffer properly.
Please can you send me your code source , i try but it did not work and i did not work with ble manager
https://github.com/dorreharay/adooretail/blob/master/helpers/printer.js
paste this code on your node modules library " rect-native-bluetooth-escpos-printer" android/src/main/java/cn/bluetooth/escpos/RNBluetoothEscPosPrinterModule.java
@ReactMethod public void cut () { byte[] command = PrinterCommand.POS_Set_Cut(1); sendDataByte(command); }
this will create a cut command then you can use like this await BluetoothEscposPrinter.cut();
I have printer XPrinter N160II, its have Auto paper cutting feature, so how can I cut paper progromically? Please help Thanks all!
Tag 2 contributors :) @januslo @#2vgvishal538