Supported Model:
TSP650II TSP650IISK TSP700II TSP800II TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU TSP100IV mPOP MCP20 MCP20B MCP21LB MCP30 MCP31L MCP31LB MCP31C MCP31CB SM-S210i(StarPRNT) SM-S210i(ESC/POS) SM-S230i(StarPRNT) SM-S230i(ESC/POS) SM-T300i(StarPRNT) SM-T300i(ESC/POS) SM-T400i(StarPRNT) SM-T400i(ESC/POS) SM-L200 SM-L300 SP700
open(completion: @escaping (Error?) -> Void)
Open the printer
open(completion: @escaping (Error?) -> Void)
Error
Code
Description
invalidOperation(message: String, errorCode: StarIO10ErrorCode)
Device is alredy opened
communication(message: String, errorCode: StarIO10ErrorCode)
Communication failed
The device is in use.
The device is not found.
The format of identifier is invalid.
The response from the device is invalid.
illegalDeviceState(message: String, errorCode: StarIO10ErrorCode)
The network function of the host device cannot be used.
illegalDeviceState(message: String, errorCode: StarIO10ErrorCode)
The Bluetooth function of the host device cannot be used.
illegalDeviceState(message: String, errorCode: StarIO10ErrorCode)
The USB function of the host device cannot be used.
unsupportedModel(message: String, errorCode: StarIO10ErrorCode)
Unsupported model or unsupported interface
unsupportedOSVersion(message: String, errorCode: StarIO10ErrorCode)
Ran on devices with iOS 13 or later (not supported version)
Warning
This method only works on devices running iOS 12; for devices running iOS 13 or later, use open() async.
Note
When using TSP650II, TSP650IISK, TSP700II, TSP800II or SP700 with Bluetooth connection, executing this API will fail during printer errors such as cover open state or no paper.