From cfdbf5963c712790edfbe2e5ff50a8bf8d68929f Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sun, 11 Sep 2022 19:47:07 +0200 Subject: [PATCH] Empty classes of ActivePowerControl --- .../src/commands/ActivePowerControlCommand.cpp | 11 +++++++++++ lib/Hoymiles/src/commands/ActivePowerControlCommand.h | 10 ++++++++++ lib/Hoymiles/src/commands/README.md | 1 + 3 files changed, 22 insertions(+) create mode 100644 lib/Hoymiles/src/commands/ActivePowerControlCommand.cpp create mode 100644 lib/Hoymiles/src/commands/ActivePowerControlCommand.h diff --git a/lib/Hoymiles/src/commands/ActivePowerControlCommand.cpp b/lib/Hoymiles/src/commands/ActivePowerControlCommand.cpp new file mode 100644 index 0000000..94738fb --- /dev/null +++ b/lib/Hoymiles/src/commands/ActivePowerControlCommand.cpp @@ -0,0 +1,11 @@ +#include "ActivePowerControlCommand.h" + +ActivePowerControlCommand::ActivePowerControlCommand(uint64_t target_address, uint64_t router_address) + : DevControlCommand(target_address, router_address) +{ +} + +bool ActivePowerControlCommand::handleResponse(InverterAbstract* inverter, fragment_t fragment[], uint8_t max_fragment_id) +{ + return true; +} \ No newline at end of file diff --git a/lib/Hoymiles/src/commands/ActivePowerControlCommand.h b/lib/Hoymiles/src/commands/ActivePowerControlCommand.h new file mode 100644 index 0000000..4db6a0f --- /dev/null +++ b/lib/Hoymiles/src/commands/ActivePowerControlCommand.h @@ -0,0 +1,10 @@ +#pragma once + +#include "DevControlCommand.h" + +class ActivePowerControlCommand : public DevControlCommand { +public: + ActivePowerControlCommand(uint64_t target_address = 0, uint64_t router_address = 0); + + virtual bool handleResponse(InverterAbstract* inverter, fragment_t fragment[], uint8_t max_fragment_id); +}; \ No newline at end of file diff --git a/lib/Hoymiles/src/commands/README.md b/lib/Hoymiles/src/commands/README.md index dc6dd5c..c55e8cb 100644 --- a/lib/Hoymiles/src/commands/README.md +++ b/lib/Hoymiles/src/commands/README.md @@ -2,6 +2,7 @@ * CommandAbstract * DevControlCommand + * ActivePowerControlCommand * MultiDataCommand * AlarmDataCommand * DevInfoAllCommand