DantSu / ESCPOS-ThermalPrinter-Android

Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
MIT License
1.22k stars 372 forks source link

I can't print multiple times #510

Open FerNHK opened 7 months ago

FerNHK commented 7 months ago

The error in my application occurs in the following way, when I try to print a second time I get the following exceptions:

I am using the printer:

GOOJPRT PT - 210 and a ZTE Api 11 phone

I hope you can help me

433795903_2332568960270880_6949980577158243180_n

saghbinylb commented 7 months ago

Hi, have you disconnect from the printer after sending the texte? escPosPrinter.disconnectPrinter(); if you do not disconnect, you will not bean able to open a new connection

NizarNaufal commented 7 months ago

just disconnectPrinter after sending text