ZebraPrinterFactory getInstance returns error

Using QLN420 v68.19.13z, Objective C, iOS SDK v1.4.948

I am trying to connect to the printer using Bluetooth.



id<ZebraPrinterConnection, NSObject> thePrinterConn = [[MfiBtPrinterConnection alloc] initWithSerialNumber:discoveredBluetoothPrinter.serialNumber];

BOOL didOpen = [thePrinterConn open];


returns didOpen = YES

when I try

        _connectedPrinter = [ZebraPrinterFactory getInstance:thePrinterConn error:&error];

I get  ZSDK_API_ERROR_DOMAIN Code=3 unable to determine printer language.


Any suggestions here?

Aditya Garg
Someone asked me if and how

Someone asked me if and how to solved this finally.

its been 2 months so I don't remember clearly, but I think the trick was to put these lines in a function (say func) and call on a separate thread

[NSThread detachNewThreadSelector:@selector(func:) to Target:self withObject:bluetoothPrinter]

where bluetoothPrinter is a EAAccessory type object.

Vote up!
Vote down!

Points: 0

You voted ‘up’

Anonymous (not verified)
Hi Aditya,Are you still

Hi Aditya,

Are you still seeing this issue at all or did moving the function to a separate thread resolve the issue? If you would be able to take a look and let me know if that is what resolved it, other people are seeing similar issues so it would be great to know for sure what resolved it.

Thank you,


Vote up!
Vote down!

Points: 0

You voted ‘up’

Log in to post comments