Esempio n. 1
0
 /*!
  *      Writes the property value from PID_PROGMODE
  *      of device with individual address "address"
  */
 static void PropertyValueWrite(ServicePort servicePort)
 {
     try
     {
         Logger.Log(Logger.Level.Information, "Property Value Write");
         Logger.Log(Logger.Level.Information, "===================");
         byte[] data = new byte[1];
         data[0] = 0;
         servicePort.PropertyValueWrite(address, 0, 54, 1, 1, data);
     }
     catch (KdriveException e)
     {
         Logger.Log(Logger.Level.Error, "Error in Property Value Write: " + e.Message);
     }
 }