A utility class used to wrap and send SGD commands to a connection.
Namespace:
ZSDK_API.SgdAssembly: ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0
Syntax
C# |
---|
public static class SGD |
Visual Basic (Declaration) |
---|
Public NotInheritable Class SGD |
Examples
Sets the IP Address of the connection
CopyC#
using ZSDK_API.Comm; using ZSDK_API.ApiException; using ZSDK_API.Sgd; try { String macAddress = "001122334455"; ZebraPrinterConnection printerConnection = new BluetoothPrinterConnection(macAddress); printerConnection.Open(); SGD.SET("ip.addr", "192.168.1.100", printerConnection); String ipAddress = SGD.GET("ip.addr", printerConnection); printerConnection.Close(); } catch (ZebraPrinterConnectionException e) { Console.Write(e.Message); }
CopyVB.NET
Imports ZSDK_API.ApiException Imports ZSDK_API.Comm Imports ZSDK_API.Sgd Try Dim macAddress As [String] = "001122334455" Dim printerConnection As ZebraPrinterConnection = New BluetoothPrinterConnection(macAddress) printerConnection.Open() SGD.[SET]("ip.addr", "192.168.1.100", printerConnection) Dim ipAddress As [String] = SGD.[GET]("ip.addr", printerConnection) printerConnection.Close() Catch e As ZebraPrinterConnectionException Console.Write(e.Message) End Try