Skip to content

Instantly share code, notes, and snippets.

@frankfuu
frankfuu / tsc-sdk-ios-example.m
Last active May 27, 2024 02:36
TSC iOS SDK Example
// iOS SDK Example
// referenced from https://apac.tscprinters.com/en/downloads
#include <TSCLIB/TSCLIB.h>
TSCSDK *lib = [TSCSDK new];
//[lib openportMFI:@"com.issc.datapath"];
[lib openport:@"10.0.10.194"];
[lib openport:@"10.0.10.194"];
//NSData *status = [lib printer_status];
//0x00:Normal, 0x01:Head opened, 0x10:Pause