/// <summary> /// Receive Serial Data /// </summary> public static ThermalControl ThermalControl(byte deviceId, ThermalControlFunction function) { if (clients.ContainsKey(deviceId)) { return(clients[deviceId].ThermalControl(function)); } else { return(new ThermalControl((byte)CompletionCode.InvalidDevice)); } }
/// <summary> /// Get/Set Thermal Control /// </summary> public virtual ThermalControl ThermalControl(ThermalControlFunction function) { ThermalControlResponse ipmiResponse = (ThermalControlResponse)this.IpmiSendReceive( new ThermalControlRequest((byte)function), typeof(ThermalControlResponse)); ThermalControl response = new ThermalControl(ipmiResponse.CompletionCode); if (response.CompletionCode == 0x00) { response.SetParamaters(ipmiResponse.Status, ipmiResponse.Tmargin); } return(response); }