-
Notifications
You must be signed in to change notification settings - Fork 437
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
Error while trying to connect to a turned off printer #7
Comments
Hi @rafaelterada, |
Hi @rafaelterada, I published a new version of the plugin with your PRs. Please, make some tests and if you find some problem open a new issue. Best. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good Morning. I am using this plugin to connect to a printer and print. It works fine but when I try to print to a paired printer that is turned off, it generates an error. How can I check if the printer is turned off or not? Thanks
E/FlutterBluePlugin(10153): java.io.IOException: read failed, socket might closed or timeout, read ret: -1
E/FlutterBluePlugin(10153): at android.bluetooth.BluetoothSocket.readAll(Unknown Source:69)
E/FlutterBluePlugin(10153): at android.bluetooth.BluetoothSocket.readInt(Unknown Source:3)
E/FlutterBluePlugin(10153): at android.bluetooth.BluetoothSocket.connect(Unknown Source:123)
E/FlutterBluePlugin(10153): at io.github.edufolly.flutterbluetoothserial.FlutterBluetoothSerialPlugin.lambda$connect$0(FlutterBluetoothSerialPlugin.java:221)
E/FlutterBluePlugin(10153): at io.github.edufolly.flutterbluetoothserial.-$$Lambda$FlutterBluetoothSerialPlugin$52C5RUgoP_r70sgAnP8ZXC1Ysz0.run(Unknown Source:6)
E/FlutterBluePlugin(10153): at android.os.AsyncTask$SerialExecutor$1.run(Unknown Source:2)
E/FlutterBluePlugin(10153): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/FlutterBluePlugin(10153): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/FlutterBluePlugin(10153): at java.lang.Thread.run(Thread.java:764)
E/AndroidRuntime(10153): FATAL EXCEPTION: AsyncTask #2
E/AndroidRuntime(10153): Process: br.com.emdurb.talonarioeletronico, PID: 10153
E/AndroidRuntime(10153): java.lang.IllegalArgumentException: Unsupported value: java.io.IOException: read failed, socket might closed or timeout, read ret: -1
E/AndroidRuntime(10153): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)
E/AndroidRuntime(10153): at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/AndroidRuntime(10153): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:208)
E/AndroidRuntime(10153): at io.github.edufolly.flutterbluetoothserial.FlutterBluetoothSerialPlugin.lambda$connect$0(FlutterBluetoothSerialPlugin.java:229)
E/AndroidRuntime(10153): at io.github.edufolly.flutterbluetoothserial.-$$Lambda$FlutterBluetoothSerialPlugin$52C5RUgoP_r70sgAnP8ZXC1Ysz0.run(Unknown Source:6)
E/AndroidRuntime(10153): at android.os.AsyncTask$SerialExecutor$1.run(Unknown Source:2)
E/AndroidRuntime(10153): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(10153): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(10153): at java.lang.Thread.run(Thread.java:764)
E/MQSEventManagerDelegate(10153): failed to get MQSService.
I/Process (10153): Sending signal. PID: 10153 SIG: 9
The text was updated successfully, but these errors were encountered: