Exemple #1
0
 public void TurnOnHotplate(int time = 5)
 {
     if (time < 5)
     {
         throw new Exception("Time must be a minimum of 5 (minutes)");
     }
     ReturnStatus result = sendCommand(0x3e, new byte[1] {
         (byte)time
     });
 }
Exemple #2
0
 public void SetCups(int cups)
 {
     if (cups < 1 || cups > 12)
     {
         throw new Exception("Cups must be between 1 and 12");
     }
     ReturnStatus result = sendCommand(0x36, new byte[1] {
         (byte)cups
     });
 }
Exemple #3
0
 public void TurnOffHotplate()
 {
     ReturnStatus result = sendCommand(0x4a, new byte[0]);
 }
Exemple #4
0
 public void ToggleGrinder()
 {
     ReturnStatus result = sendCommand(0x3c, new byte[0]);
 }
Exemple #5
0
 public void SetStrength(CoffeeStrength strength)
 {
     ReturnStatus result = sendCommand(0x35, new byte[1] {
         (byte)strength
     });
 }