Пример #1
0
 /// <summary>
 /// Initialise the class with Nightlamp flag and Socket
 /// </summary>
 public LightDimmer()
 {
     SSL              = new SocketServices();
     bNight           = false;
     dimmerValue      = 0;
     dimmerNightValue = 0;
 }
Пример #2
0
 /// <summary>
 /// Store the socket required for communication. Initially monitoring alert will be OFF
 /// </summary>
 public IntruderDetect()
 {
     SSI           = new SocketServices();
     bStartMonitor = false;
 }
Пример #3
0
 /// <summary>
 /// Declare and initialise SocketServices
 /// </summary>
 public TemperatureMonitor()
 {
     SSL = new SocketServices();
 }
Пример #4
0
 /// <summary>
 /// Define a socket service that will be used to communicate with NodeMCU.
 /// Curtain distance is the variable that actually stores the current position of the curtain in cm.
 /// By defining as 1 we assume the curtain is about 1cm from the window ledge - that is closed.
 /// </summary>
 public CurtainMotor()
 {
     SS = new SocketServices();
     CurtainDistance = 1;
 }