Zebra ZQ520 Printer - Update Firmware - Using LinkOS SDK iOS

We are having issues with the Zebra printer disconnecting when we send the firmware update to the iOS device. When we push the firmware to the device, the printer changes its text to "Downloading Firmware" but never finishes.

Here is a code snippet

id<ZebraPrinterConnection, NSObject> conn = [self getPrinterConnection:reject];

if (conn != nil) {
// Get the printer
NSError* printerError = nil;

[conn open];
[NSThread sleepForTimeInterval:1.0];

// Fetch the printer and file objects for file manipulation
if (printerError == nil) {
// Get the firmware file from app resources
NSURL* filePath = [[NSBundle mainBundle] URLForResource:@"SP76-005093A" withExtension:@".zpl"];

NSData* firmwareData = [NSData dataWithContentsOfURL:filePath];

@try {
// Send the file to the printer
BOOL didSend = [conn write:firmwareData error:&printerError];
} @catch (NSException* e) {
NSLog(@"%@", [e reason]);
reject(@"print_error", [e reason], [self getError:[e reason]]);
} @finally {
[conn close];
}
} else {
NSLog(@"%@", [printerError localizedDescription]);
}
resolve(@"Done!");
} else {
reject(@"print_error", @"Error connecting to printer", [self getError:@"Error connecting to printer"]);
}

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’