Subversion Repositories heating

Rev

Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 55
Line 107... Line 107...
107
		double getNight(int room);						// Retrieve the optional temperature in a particular room for night mode
107
		double getNight(int room);						// Retrieve the optional temperature in a particular room for night mode
108
		double getMinimal(int room);					// Retrieve the optional temperature in a particular room for off mode
108
		double getMinimal(int room);					// Retrieve the optional temperature in a particular room for off mode
109
		void setHandle(int fd);							// Add the handle to a connected client to return messages directly
109
		void setHandle(int fd);							// Add the handle to a connected client to return messages directly
110
		void removeHandle(int fd);						// Remove a previous added handle
110
		void removeHandle(int fd);						// Remove a previous added handle
111
		void getConfig(int s1);							// Returns the configuration of all rooms to a connected client
111
		void getConfig(int s1);							// Returns the configuration of all rooms to a connected client
-
 
112
		bool isHeating();								// Returns true if one room needs to be heated
112
 
113
 
113
		void pthrTemps();								// Thread function to request all temperatures
114
		void pthrTemps();								// Thread function to request all temperatures
114
		void pthrHtml();								// Thread function for a HTML server
115
		void pthrHtml();								// Thread function for a HTML server
115
 
116
 
116
	private:
117
	private:
Line 147... Line 148...
147
		bool initialized;								// True if everything was successfully initialized
148
		bool initialized;								// True if everything was successfully initialized
148
		bool rstop;										// True if runtime loop should stop
149
		bool rstop;										// True if runtime loop should stop
149
		bool rrun;										// True if runtime loop is active
150
		bool rrun;										// True if runtime loop is active
150
		int s1[100];									// Handle to connected client(s)
151
		int s1[100];									// Handle to connected client(s)
151
		int outSensor;									// The number of the outside temperature sensor
152
		int outSensor;									// The number of the outside temperature sensor
-
 
153
		int heatIO;										// The GPIO pin to control heating (switching it on or off)
152
		html *HtmlServer;								// Pointer to HTML server running in background
154
		html *HtmlServer;								// Pointer to HTML server running in background
153
};
155
};
154
 
156
 
155
#endif
157
#endif