OpenDTU/lib/Hoymiles/src/commands/ChannelChangeCommand.h
2023-12-12 13:26:07 +01:00

18 lines
570 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "CommandAbstract.h"
class ChannelChangeCommand : public CommandAbstract {
public:
explicit ChannelChangeCommand(const uint64_t target_address = 0, const uint64_t router_address = 0, const uint8_t channel = 0);
virtual String getCommandName() const;
void setChannel(const uint8_t channel);
uint8_t getChannel() const;
virtual bool handleResponse(InverterAbstract& inverter, const fragment_t fragment[], const uint8_t max_fragment_id);
virtual uint8_t getMaxResendCount();
};