Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only prints once #39

Open
eric-sison opened this issue May 10, 2024 · 4 comments
Open

Only prints once #39

eric-sison opened this issue May 10, 2024 · 4 comments

Comments

@eric-sison
Copy link

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

@ekasetiawans
Copy link
Owner

@eric-sison did you use the latest version?

@eric-sison
Copy link
Author

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
Copy link
Author

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

@kkooi
Copy link

kkooi commented Nov 29, 2024

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!);
},
);
},
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants