Example #1
0
 public static string getDeviceID()
 {
     string s = "";
     Intermec.DeviceManagement.SmartSystem.ITCSSApi ssApi = new Intermec.DeviceManagement.SmartSystem.ITCSSApi();
     try
     {
         int iSize = 1024;
         StringBuilder sb = new StringBuilder(iSize);
         string sQuery = "<Subsystem Name=\"SS_Client\"> \r\n<Group Name=\"Identity\"> \r\n<Field Name=\"UniqueId\">otto</Field> \r\n</Group> \r\n</Subsystem>";
         uint uErr = ssApi.Get(sQuery, sb, ref iSize, 2000);
         if (uErr == Intermec.DeviceManagement.SmartSystem.ITCSSErrors.E_SS_SUCCESS)
         {
             string temp = ssAPIhelper.ssAPIhelper.getStrSetting(sb, "UniqueId");
             s = temp;
         }
         else
         {
             s = "ssAPI err=" + uErr.ToString();
         }
     }
     catch (Exception ex)
     {
         return "Exception! " + ex.Message;
     }
     return s;
 }
Example #2
0
 public void Dispose()
 {
     try
     {
         SSAPI.Dispose();
         SSAPI = null;
     }
     catch (Exception) { }
 }
Example #3
0
 public void Dispose()
 {
     try
     {
         SSAPI.Dispose();
         SSAPI = null;
     }
     catch (Exception) { }
 }
Example #4
0
 public void Dispose()
 {
     if (_ssAPI != null)
     {
         try
         {
             _ssAPI.Dispose();
             _ssAPI = null;
         }
         catch (Exception) { }
     }
 }
Example #5
0
 public BTpower()
 {
     SSAPI = new ITCSSApi();
 }
Example #6
0
 public BTpower()
 {
     SSAPI = new ITCSSApi();
 }