AllInOneYT / react-native-thermal-printer

MIT License
102 stars 52 forks source link

printing not working with already paired device android #56

Open dharavp opened 1 year ago

dharavp commented 1 year ago

@AllInOneYT Hello, I am facing unable to connect to bluetooth device issue when my device is already paired to printer. printing is working fine when my device is not paired with printer. checked with android 11 and 12. facing same issue

"react-native-thermal-printer": "^2.3.6",

code for printing

 await ThermalPrinterModule.printBluetooth({
          macAddress: macAddress,
          payload: `[L]<font size='small'>amount:</font>\n`,
          autoCut: true,
        });

issue i'm getting

Screenshot 2023-06-29 at 12 41 43 PM

can you please help me with this issue?

happyshittake commented 11 months ago

you need to call ThermalPrinterModule.getBluetoothDeviceList() before calling printBluetooth