summaryrefslogtreecommitdiff
path: root/src/protocol_18/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol_18/client.h')
-rw-r--r--src/protocol_18/client.h32
1 files changed, 32 insertions, 0 deletions
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 <memory>
+#include <vector>
+#include <string>
+
+
+namespace p18 {
+
+using protocol::BaseClient;
+using protocol::BaseResponse;
+
+class Client : public BaseClient {
+private:
+ static std::string packArguments(p18::CommandType commandType, std::vector<std::string>& arguments);
+
+public:
+ std::shared_ptr<BaseResponse> execute(int commandType, std::vector<std::string>& arguments) override;
+};
+
+}
+
+
+#endif //INVERTER_TOOLS_P18_CLIENT_H_