Retrive printer name

// Expert user has replied.
D Debartha N 1 year 1 month ago
122 1 0

Is there any way to get Printer Name / Model number using iOS Link-OS sdk.

DiscoveredPrinter has only one property that is 'address'.

My application needs to display Printer name / model number as well.

Can anyone please help me to get it resolved.

Thanks!

Please Register or Login to post a reply

1 Replies

S Steven Si

You can make a connection to the printer with the IP address in the DiscoveredPrinter object and retrieve the printer name, serial number, printer model, etc., from the printer, and display them in the UI. Here are some examples:

// Get the serial number, printer name or printer ID
NSString *id = [SGD GET:"device.unique_id" withPrinterConnection:zebraPrinterConnection error:&error]

// Get the printer model
NSString *pm = [SGD GET:"device.product_name" withPrinterConnection:zebraPrinterConnection error:&error]

// Or
NSString *pm = [SGD GET:"device.host_identification" withPrinterConnection:zebraPrinterConnection error:&error]

 

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