We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wonder how exactly the BTPrinter.connected() method determines if the printer is still connected?
Looking at the Java code, the method is:
// Check if printer is already connected boolean connected(CallbackContext callbackContext) { try { if (mmSocket == null) { callbackContext.success("false"); return false; } else if (mmSocket.isConnected()) { callbackContext.success("true"); return true; } else { callbackContext.success("false"); return false; } } catch (Exception e) { String errMsg = e.getMessage(); Log.e(LOG_TAG, errMsg); e.printStackTrace(); callbackContext.error(errMsg); } return false; }
However, in my case this method always return True after initial successful connection - even after the printer is turned OFF? Any ideas about this?
The text was updated successfully, but these errors were encountered:
I have the same issue. Did you manage to fix ?
Sorry, something went wrong.
Unfortunately - not :(
No branches or pull requests
I wonder how exactly the BTPrinter.connected() method determines if the printer is still connected?
Looking at the Java code, the method is:
However, in my case this method always return True after initial successful connection - even after the printer is turned OFF?
Any ideas about this?
The text was updated successfully, but these errors were encountered: