Retrieving printer setting

// Expert user has replied.
v vignesh baskaran 5 months 3 weeks ago
66 3 0

Hi, 

  1. we are trying to retrieve  bunch of printer settings but using SGD we are only able to retrieve only one setting per request, is there a way to get collective setting in a single request 
  2. When we try to cycling setting request using SGD sometimes values are getting clubbed together  eg: resolution is empty but for media size returns {Resolution value}{Media size value}
  3. zpl.top_position command doesn't work

 

Setting trying to get are as follows 

enum ZebraPrinterSetting: String, CaseIterable {

    case resolution = "head.resolution.in_dpi"

    case mediaSize = "zpl.label_length"

    case mediaType = "ezpl.print_method"

    case mediaTracking = "ezpl.media_type"

    case darkness = "print.tone"

    case printWidth = "ezpl.print_width"

    case printSpeed = "media.speed"

    case printMode = "media.printmode"

    case tearOffAdjustment = "ezpl.tear_off"

    //    case labelTopAdjustment = "zpl.top_position"

    case leftPositionAdjustment = "zpl.left_position"

    case reprint = "ezpl.reprint_mode"

    

}

Please Register or Login to post a reply

3 Replies

S Steven Si

The SDK provides API to retrieve the values of multiple settings. See this link - https://techdocs.zebra.com/link-os/2-14/android/content/com/zebra/sdk/s…

v vignesh baskaran

Hi, we are looking for similar api in iOS Sdk

S Steven Si

If you use the Printer SDK for .NET MAUI to developer the iOS app, then the Zebra.Sdk.Settings package has API to get the values for multiple settings, which is similar to the API provided in the SDK for Android.

If you use the Printer SDK for iOS, then we will have to use a different technique to get the values of multiple settings, as there is no such API in the SDK. With the SDK for iOS, use the connection.write() and connect.read() to get the values of settings with a JSON string, for example, as shown below.

### To get all settings in the configuration
{}{"allconfig":null}

### To get the settings related to Bluetooth
{}{"bluetooth":null}

### To retrieve the current status
{}{"device.host_status":null}

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