supla-device
Loading...
Searching...
No Matches
modbus_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_MODBUS_PARAMETERS_H_
5#define SRC_SUPLA_NETWORK_HTML_MODBUS_PARAMETERS_H_
6
7#include <supla/network/html_element.h>
8#include <supla/modbus/modbus_configurator.h>
9
10namespace Supla {
11namespace Modbus {
12class Configurator;
13} // namespace Modbus
14
15namespace Html {
17 public:
18 explicit ModbusParameters(Supla::Modbus::Configurator *modbus = nullptr);
19 virtual ~ModbusParameters();
20
21 void send(Supla::WebSender* sender) override;
22 bool handleResponse(const char* key, const char* value) override;
23 void onProcessingEnd() override;
24
25 void setModbusPtr(Supla::Modbus::Configurator *modbus);
26
27 protected:
28 Supla::Modbus::Configurator *modbus = nullptr;
30 bool configChanged = false;
31};
32
33}; // namespace Html
34}; // namespace Supla
35
36#endif // SRC_SUPLA_NETWORK_HTML_MODBUS_PARAMETERS_H_
Definition html_element.h:22
Definition modbus_parameters.h:16
Definition modbus_configurator.h:94
Definition web_sender.h:160
Definition modbus_configurator.h:79