Line 129... |
Line 129... |
129 |
bool buildDB();
|
129 |
bool buildDB();
|
130 |
HCONF *findRoom(int room);
|
130 |
HCONF *findRoom(int room);
|
131 |
void answer(std::string msg);
|
131 |
void answer(std::string msg);
|
132 |
std::string timeToStr(time_t t);
|
132 |
std::string timeToStr(time_t t);
|
133 |
time_t getTime();
|
133 |
time_t getTime();
|
- |
|
134 |
void applyConfig(); // Transfers the actual configuration to HTML server
|
134 |
void startHeat(int room) { controlHeat(room, true); }
|
135 |
void startHeat(int room) { controlHeat(room, true); }
|
135 |
void stopHeat(int room) { controlHeat(room, false); }
|
136 |
void stopHeat(int room) { controlHeat(room, false); }
|
136 |
void controlHeat(int room, bool stst); // Controles the valves via the GPIO ports
|
137 |
void controlHeat(int room, bool stst); // Controles the valves via the GPIO ports
|
137 |
bool evaluateTemp(int room, double temp); // Evaluates the current temperature and calculates the time
|
138 |
bool evaluateTemp(int room, double temp); // Evaluates the current temperature and calculates the time
|
138 |
// to reach the soll temperature. It return true if the heating
|
139 |
// to reach the soll temperature. It return true if the heating
|