OpenDTU/include/MqttHandleInverterTotal.h
Thomas Basler 26cbc496a7 Feature: Implemented MQTT publishing of total values
If one or more inverter is not reachable the flag is_valid changes to zero. Disabled inverters are ignored.
2023-04-24 18:51:30 +02:00

15 lines
272 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <TimeoutHelper.h>
class MqttHandleInverterTotalClass {
public:
void init();
void loop();
private:
TimeoutHelper _lastPublish;
};
extern MqttHandleInverterTotalClass MqttHandleInverterTotal;