Instead of just adding the target_address to a command this patch adds a reference to the whole inverter instance
14 lines
432 B
C++
14 lines
432 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include "MultiDataCommand.h"
|
|
|
|
class DevInfoAllCommand : public MultiDataCommand {
|
|
public:
|
|
explicit DevInfoAllCommand(InverterAbstract* inv, const uint64_t router_address = 0, const time_t time = 0);
|
|
|
|
virtual String getCommandName() const;
|
|
|
|
virtual bool handleResponse(InverterAbstract& inverter, const fragment_t fragment[], const uint8_t max_fragment_id);
|
|
};
|