/// <summary> /// Initialise the class with Nightlamp flag and Socket /// </summary> public LightDimmer() { SSL = new SocketServices(); bNight = false; dimmerValue = 0; dimmerNightValue = 0; }
/// <summary> /// Store the socket required for communication. Initially monitoring alert will be OFF /// </summary> public IntruderDetect() { SSI = new SocketServices(); bStartMonitor = false; }
/// <summary> /// Declare and initialise SocketServices /// </summary> public TemperatureMonitor() { SSL = new SocketServices(); }
/// <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; }