From 3aed59276c2b7275603f6da18377b77718948667 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 7 Jun 2021 01:40:32 +0300 Subject: wip --- src/protocol_18/client.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/protocol_18/client.h (limited to 'src/protocol_18/client.h') diff --git a/src/protocol_18/client.h b/src/protocol_18/client.h new file mode 100644 index 0000000..3fb96fc --- /dev/null +++ b/src/protocol_18/client.h @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef INVERTER_TOOLS_P18_CLIENT_H_ +#define INVERTER_TOOLS_P18_CLIENT_H_ + +#include "../voltronic/device.h" +#include "types.h" +#include "response.h" +#include "../protocol/client.h" + +#include +#include +#include + + +namespace p18 { + +using protocol::BaseClient; +using protocol::BaseResponse; + +class Client : public BaseClient { +private: + static std::string packArguments(p18::CommandType commandType, std::vector& arguments); + +public: + std::shared_ptr execute(int commandType, std::vector& arguments) override; +}; + +} + + +#endif //INVERTER_TOOLS_P18_CLIENT_H_ -- cgit v1.2.3