I have been trying for a while now and cannot seem to connect to my Epson TM-T88V printer from my app built with Swift. I have tried what I learned here https://github.com/Shoptree/epsonPrintSDK/issues/3 and was able to make a connection, but it is a dated SDK and I need more printers to be compatible. I have also looked at the Epson pdf guide written in Obj-C and the Java version.
I have tried many variations of the following. (Note: I have no problem bridging the headers and getting access to the library.
var printer = Epos2Printer(printerSeries: 0, lang: 1)
printer.connect("TCP:192.168.X.X", timeout: 10000)
printer.beginTransaction()
printer.addText("Hello World")
printer.addCut(1)
Thanks in advance!