XCODE problems to pritn on Zebra Printer

J Joaquin vt9yxeuu1k1q08wiyyxonrcnf5nugeu,Flores Garcia 3 years 7 months ago
41 2 0

I have iMZ320 Zebra printer, I downloed the sdk and the examples from Zebra page, the example works fine on Ipad and I can send to print.
Now, I work on my project and I have this issue, I have one error when execute the line
self.printer = [ZebraPrinterFactory getInstance:self.connection error:&error];This the error
@"ZSDK_API_ERROR_DOMAIN" - code: 3  The line original to do the connection is
self.connection = [[[MfiBtPrinterConnection alloc] initWithSerialNumber:self.connectivityViewController.bluetoothPrinterLabel.text] autorelease];But I don't have any
self.connectivityViewController.bluetoothPrinterLabel.textSo I change by
EAAccessoryManager *manager = [EAAccessoryManager sharedAccessoryManager]; self.bluetoothPrinters = [[NSMutableArray alloc] initWithArray:manager.connectedAccessories]; EAAccessory *accessory = [self.bluetoothPrinters objectAtIndex:0]; NSString *printer = accessory.name; self.connection = [[MfiBtPrinterConnection alloc] initWithSerialNumber:printer];Any ideas?

Please Register or Login to post a reply

2 Replies

J Joaquin vt9yxeuu1k1q08wiyyxonrcnf5nugeu,Flores Garcia

Hi

The meaning of the code @"ZSDK_API_ERROR_DOMAIN" - code: 3  it's

@"NSLocalizedDescription" : @"Unable to determine printer language"

Any ideas?

E Efkan YILMAZ

Hi Joaquin,

Usually, updating the timeout (as you mentioned you did in this post) resolves the issue. Can you share the code where you make the connection via BT and also where you added in the timeout update line? What timeout values did you try?

Thank you,
Beverly

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