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

buzzer integrated #525

Open
fabry84 opened this issue Jun 2, 2024 · 1 comment
Open

buzzer integrated #525

fabry84 opened this issue Jun 2, 2024 · 1 comment

Comments

@fabry84
Copy link

fabry84 commented Jun 2, 2024

Hi, congratulations, your project also works very well with Italian printers. Can I ask you if you have also planned to activate the buzzer integrated into the printers when cutting the paper? or is it possible to send escpos commands directly to the printer?

Thank you

@fabry84
Copy link
Author

fabry84 commented Jun 15, 2024

Hi Dantsu, could you give me some help? I found the code for the internal buzzer, but when I send it I get an error. I attach the code and error, what am I doing wrong?
Thank you
TcpConnection printerConnection = new TcpConnection("192.168.1.151",9100);
printerConnection.write(new byte[]{0x1b,0x42,0x02,0x01});
printerConnection.send(1);

The error is in the line printerConnection.send(1);

Caused by: com.dantsu.escposprinter.exceptions.EscPosConnectionException: Unable to send data to device.

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

1 participant