コード例 #1
0
 /// <summary>
 /// Updates the device data from number data
 /// </summary>
 /// <param name="HS">Homeseer application.</param>
 /// <param name="refId">The reference identifier.</param>
 /// <param name="data">Number data.</param>
 protected static void UpdateDeviceData(IHSApplication HS, int refId, double data, DateTime updateTime)
 {
     HS.set_DeviceInvalidValue(refId, false);
     HS.SetDeviceValueByRef(refId, data, true);
     HS.SetDeviceLastChange(refId, updateTime);
 }