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?
XCODE problems to pritn on Zebra Printer |
2 Replies
Hi
The meaning of the code @"ZSDK_API_ERROR_DOMAIN" - code: 3 it's
@"NSLocalizedDescription" : @"Unable to determine printer language"
Any ideas?
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