ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
26 stars 53 forks source link

Only prints once #39

Open eric-sison opened 6 months ago

eric-sison commented 6 months ago

After successfully printing a receipt once, subsequent attempts to print again are unsuccessful.

ekasetiawans commented 6 months ago

@eric-sison did you use the latest version?

eric-sison commented 6 months ago

Yes. My previous issue has already been resolved. It is now printing properly (including the quality). But I am facing another issue using 2.16.7, which is that, it only prints once. Last known working version (without issues) is 2.14.0. But when I upgraded to later versions, these issues arose.

eric-sison commented 6 months ago

The same thing happens with the example provided. I am using epson TM-P20 printer

kkooi commented 1 day ago

hi, same here 1st print success 2nd become IMG_20241129_173126

3rd print success again

any one solve it?

this is my code if (macAddredd != null) { /// do print await controller?.print(address: macAddredd, keepConnected: true).then( (value) async { List intList = [0x1D, 0x56, 0x00]; Uint8List cutCommand = Uint8List.fromList(intList); FlutterBluetoothPrinter.printBytes(address: macAddredd!, data: cutCommand, keepConnected: true).then( (value1) async { await FlutterBluetoothPrinter.disconnect(macAddredd!); }, ); }, ); }