Пример #1
0
        public string GetLowTempAlarm(ThermometersName whichThermo)
        {
            Dictionary<string, string> response = Arduino.GetStatus();

            string key = "ThermometerLowAlarm" + (int)whichThermo;
            return response[key];
        }
Пример #2
0
        public string GetTemps(ThermometersName whichThermo)
        {
            Dictionary<string, string> response = Arduino.GetStatus();

            int index = (int)whichThermo;
            string key = "Thermometer" + (int)whichThermo;
            return response[key];
        }
Пример #3
0
 public void ClearAlarms(ThermometersName whichThermo)
 {
     string command = ((int)whichThermo).ToString();
     Arduino.SendCommand((int)ArduinoCommands.CommandTypes.ClearTempAlarms, command);
 }
Пример #4
0
 public void SetLowTempAlarm(ThermometersName whichThermo, string lowTemp)
 {
     string command = ((int)whichThermo).ToString() + "," + lowTemp;
     Arduino.SendCommand((int)ArduinoCommands.CommandTypes.SetTempAlarmLow, command);
 }