Hello,
I have the following problem:
I have a Bluetooth printer with which I can print texts as normal as normal, but the app checks when the printer is connected, when it is switched on, it shows "Printer Connection OK", but when I turn the printer off and on prints Go comes no error that the device is not more connected but "java.io.IOException: Broken pipe" and the app is closed.
Is there a possibility to check later whether the connection still exists?
With "if connected then" I already tried, the app thinks it is still connected to the printer although the already is offline ...
I have the following problem:
I have a Bluetooth printer with which I can print texts as normal as normal, but the app checks when the printer is connected, when it is switched on, it shows "Printer Connection OK", but when I turn the printer off and on prints Go comes no error that the device is not more connected but "java.io.IOException: Broken pipe" and the app is closed.
Is there a possibility to check later whether the connection still exists?
With "if connected then" I already tried, the app thinks it is still connected to the printer although the already is offline ...