18 lines
481 B
C++
18 lines
481 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include "DevControlCommand.h"
|
|
|
|
class PowerControlCommand : public DevControlCommand {
|
|
public:
|
|
explicit PowerControlCommand(InverterAbstract* inv, const uint64_t router_address = 0);
|
|
|
|
virtual String getCommandName() const;
|
|
|
|
virtual bool handleResponse(const fragment_t fragment[], const uint8_t max_fragment_id);
|
|
virtual void gotTimeout();
|
|
|
|
void setPowerOn(const bool state);
|
|
void setRestart();
|
|
};
|