Supported Model:
TSP100IV-UE TSP100IV-UEWB TSP100IV-UE SK TSP100IV-UEWB SK TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU MCP31L MCP31LB MCP31CI MCP31CBI MCP31C MCP31CB MCP30 MCP21LB MCP20B MCP20 MCL32CI MCL32CBI MCL21CI MCL21CWBI MCL21CI LBL MCL21CWBI LBL POP10 POP10CI POP10CBI TSP650II TSP650IISK TSP700II TSP800II BSC10II SP700 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 TSP100LAN MCD10UEWB
write(data: Data, timeout: Int = 10_000) async
Write data to the printer
write(data: Data, timeout: Int = 10_000) async throws
Parameter |
Type |
|
|---|---|---|
data |
Data to write |
|
timeout |
Write timeout (msec) |
Error
Code
Description
invalidOperation(message: String, errorCode: StarIO10ErrorCode)
Device is not opened
communication(message: String, errorCode: StarIO10ErrorCode)
Communication failed
Note
This method usually does not need to be used. Please use this only if it is necessary for migration from StarPRNT SDK (StarIO).
Using this method, the cash drawer can be opened even during printer errors such as cover open state or no paper.
When close is executed immediately after sending large data with BluetoothLE interface, all data may not be sent. Please check the actual operation and add Wait processing after write execution.

