I am using Epos printer iOS SDK in my project. I am able to print a receipt but unable to open a cash drawer. Any suggestions which methods in epos SDK to be used to send commands to cash drawer? (Printer EPSON TM-U220B, APG Cash Drawer.)
Tried with below code but not working
let builder:Epos2Printer = Epos2Printer.init(printerSeries:15, lang: 1)
var result:Int32
let a : Int = 1
let b : Int32 = Int32(a)
//To send commands to cash drawer
result = builder.addPulse(b, time:0)
let str:String = "<XCT>27,112,0,25,250"
let data:NSData = str.dataUsingEncoding(NSUTF8StringEncoding)!
result = builder.addCommand(data)