Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
        /// <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);
        }