ソースを参照

Merge remote-tracking branch 'origin/master'

master
CANCERYS\kw093 3ヶ月前
コミット
915e1bb3c1
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      src/main/java/com/ffii/core/utils/ZebraPrinterUtil.kt

+ 4
- 4
src/main/java/com/ffii/core/utils/ZebraPrinterUtil.kt ファイルの表示

@@ -57,12 +57,12 @@ open class ZebraPrinterUtil {

// 4. Send the ZPL command to the printer via a network socket
val printData = zplCommand.toByteArray()
repeat(printQty ?: 1) { index ->
Socket(printerIp, printerPort).use { socket ->
val os: OutputStream = socket.getOutputStream()
os.write(printData)
os.flush()
}
repeat(printQty ?: 1) { index ->
os.write(printData)
os.flush()
}
}
}
} catch (e: Exception) {


読み込み中…
キャンセル
保存