star-micronics / StarXpand-SDK-iOS

StarXpand SDK for iOS is a software development kit for supporting application development for Star Micronics devices.
https://star-m.jp/starxpandsdk-oml.html
Other
27 stars 5 forks source link

Port open failure may occur on LAN I/F with continuous open/close #32

Closed KHosozawa closed 1 day ago

KHosozawa commented 2 weeks ago

Phenomenon

When repeatedly printing with an execution of StarPrinter.open() and StarPrinter.close() methods via LAN interface, StarIO10Error.inUse error may be occurred in StarPrinter.open() method.

Conditions for Occurrence

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 an wait for approximately 500 milliseconds (*) before re-executing the StarPrinter.open() method.

KHosozawa commented 1 day ago

We had released version 2.8.0, which includes a fix for this issue. Thank you for your patience.