supla-device
Loading...
Searching...
No Matches
thermal_protection_parameters.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_NETWORK_HTML_THERMAL_PROTECTION_PARAMETERS_H_
5#define SRC_SUPLA_NETWORK_HTML_THERMAL_PROTECTION_PARAMETERS_H_
6
7#include <supla/device/thermal_protection_config.h>
8#include <supla/network/html_element.h>
9
10namespace Supla {
11namespace Html {
12
14 public:
18
19 void send(Supla::WebSender *sender) override;
20 bool handleResponse(const char *key, const char *value) override;
21 void onProcessingEnd() override;
22
23 private:
24 void loadConfig();
25
29 bool configLoaded = false;
30 bool thresholdFound = false;
31 bool enabledFound = false;
32};
33
34} // namespace Html
35} // namespace Supla
36
37#endif // SRC_SUPLA_NETWORK_HTML_THERMAL_PROTECTION_PARAMETERS_H_
Definition html_element.h:22
Definition thermal_protection_parameters.h:13
Definition web_sender.h:160
Definition thermal_protection_config.h:14
Definition thermal_protection_config.h:28