Exemple #1
0
 /// <summary>
 /// Sets the AndWhenVacated state
 /// </summary>
 /// <param name="state"></param>
 public void SetAndWhenVacatedState(bool state)
 {
     if (state)
     {
         OccSensor.AndWhenVacated();
     }
 }
Exemple #2
0
 /// <summary>
 /// Enables or disables the Ultrasonic B sensor
 /// </summary>
 /// <param name="state"></param>
 public void SetUsBEnable(bool state)
 {
     if (state)
     {
         OccSensor.EnableUltrasonicSensorSideB();
     }
     else
     {
         OccSensor.DisableUltrasonicSensorSideB();
     }
 }
Exemple #3
0
 public void EnableRawStates(bool state)
 {
     if (state)
     {
         OccSensor.EnableRawStates();
     }
     else
     {
         OccSensor.DisableRawStates();
     }
 }
Exemple #4
0
 /// <summary>
 /// Enables or disables short timeout based on state
 /// </summary>
 /// <param name="state"></param>
 public void SetShortTimeoutState(bool state)
 {
     if (state)
     {
         OccSensor.EnableShortTimeout();
     }
     else
     {
         OccSensor.DisableShortTimeout();
     }
 }
Exemple #5
0
 /// <summary>
 /// Enables or disables the LED Flash
 /// </summary>
 /// <param name="state"></param>
 public void SetLedFlashEnable(bool state)
 {
     if (state)
     {
         OccSensor.EnableLedFlash();
     }
     else
     {
         OccSensor.DisableLedFlash();
     }
 }
Exemple #6
0
 /// <summary>
 /// Enables or disables the PIR sensor
 /// </summary>
 /// <param name="state"></param>
 public void SetPirEnable(bool state)
 {
     if (state)
     {
         OccSensor.EnablePassiveInfraredSensor();
     }
     else
     {
         OccSensor.DisablePassiveInfraredSensor();
     }
 }
Exemple #7
0
 public void ForceVacant()
 {
     OccSensor.ForceVacant();
 }
Exemple #8
0
 public void ForceOccupied()
 {
     OccSensor.ForceOccupied();
 }