LinkOS-iOS-Samples icon indicating copy to clipboard operation
LinkOS-iOS-Samples copied to clipboard

Very long timeout when trying to print with printer disconnected via Bluetooth

Open ralfebert opened this issue 4 years ago • 0 comments

When I have a Zebra ZQ320 printer connected via Bluetooth on iOS 13.4, printing via the link-os SDK works fine. Now, when I am connected, and then turn off the printer, and then try to print, I'd expect it to recognize that the printer is gone after a few seconds. I even see the notification via the system EAAccessoryManager after a few seconds that the printer is gone. But instead, I see the ZebraPrinterFactory getting stuck/waiting for 2 minutes before it runs in a time out:

converted

I saw that there are properties to configure the timeout on the connection (setMaxTimeoutForRead/setTimeToWaitForMoreData) but these seem to have no effect in this case.

ralfebert avatar Apr 08 '20 19:04 ralfebert