ZebraPrinterFactory getInstance returns error

A Aditya Garg 3 years 7 months ago
21 1 0

Using QLN420 v68.19.13z, Objective C, iOS SDK v1.4.948
I am trying to connect to the printer using Bluetooth.
While
 
id 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?

Please Register or Login to post a reply

1 Replies

A Aditya Garg

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.

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