Port open failure may occur on LAN I/F with continuous open/close #128
Labels
Platform: ios
Status: work in progress
Currently working on this issue
Target: stario10
Issues related to the API and other StarIO10 library.
Type: bug
Something isn't working
Phenomenon
When repeatedly printing with an execution of
StarPrinter.open()
andStarPrinter.close()
methods via LAN interface,StarIO10Error.inUse
error may be occurred inStarPrinter.open()
method.Conditions for Occurrence
StarPrinter.close()
method on the printer, if theStarPrinter.open()
method is executed on the same printer within a few hundred milliseconds.Cause
It has been identified that after calling the iOS API by Apple Inc. to close the communication port of the printer, there can be a delay before the iOS device sends the communication for the closing process.
During this interval, until the printer receives the port closing process from the iOS device, the next port opening will fail.
Workaround
If the
StarIO10Error.inUse
error is thrown, please add anwait
for approximately 500 milliseconds (*) before re-executing theStarPrinter.open()
method.The text was updated successfully, but these errors were encountered: