/// <summary> /// Update equipment with last data /// </summary> public override void Update(object data, string cmdType) { base.Update(data, cmdType); SensorHT curData = data as SensorHT; this.Temperature = curData.Temperature; this.Humidity = curData.Humidity; }
/// <summary> /// Update equipment with last data /// </summary> public override void Update(object data) { SensorHT curData = data as SensorHT; if (curData.Voltage != default(int)) { this.Voltage = curData.Voltage; this.BatteryLevel = base.ParseVoltage(curData.Voltage); } this.Status = curData.Status; this.Temperature = curData.Temperature; this.Humidity = curData.Humidity; }