iOS - SDK - no printer found

E Ernst Suedmeyer 2 years 10 months ago
33 2 0

Hi I'm new to this whole printing thing.  I have looked through the sdk am stuck with connecting to the printer.

Used the connecting bluetooth sample functions from the iOS documentation, which I translated into swift, but no printer was found.  Tried this with device already connected to iOS and not connected to iOS.

        var serialNumber = ""
        let sam = EAAccessoryManager.shared()
        let connectedAccessories = sam.connectedAccessories as Array
        for accessory in connectedAccessories {
            if accessory.protocolStrings.contains("com.zebra.rawport") {
                serialNumber = accessory.serialNumber
                break
            }
        }
        let thePrinterConn : ZebraPrinterConnection = MfiBtPrinterConnection(serialNumber: serialNumber)
        var success = thePrinterConn.open()
        print(success)

Any ideas? What am I missing?

Please register or login to post a reply

2 Replies

E Ernst Suedmeyer

Got it ... so now we can find the printer, have installed print direct on the printer ... anybody know how we tell print direct to print a pdf file and where to get it?

R Roman Jay Almaza

Thank you so much for this, got my printer working again.
https://www.artexproductions.com

CONTACT
Can’t find what you’re looking for?