mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-12 11:08:12 +00:00
23 lines
646 B
C++
23 lines
646 B
C++
#ifndef _DOMOTICZMQTTHANDLER_H
|
|
#define _DOMOTICZMQTTHANDLER_H
|
|
|
|
#include "AmsMqttHandler.h"
|
|
#include "AmsConfiguration.h"
|
|
|
|
class DomoticzMqttHandler : public AmsMqttHandler {
|
|
public:
|
|
DomoticzMqttHandler(MQTTClient* mqtt, char* buf, DomoticzConfig config) : AmsMqttHandler(mqtt, buf) {
|
|
this->config = config;
|
|
};
|
|
bool publish(AmsData* data, AmsData* previousState, EnergyAccounting* ea);
|
|
bool publishTemperatures(AmsConfiguration*, HwTools*);
|
|
bool publishPrices(EntsoeApi*);
|
|
bool publishSystem(HwTools* hw, EntsoeApi* eapi, EnergyAccounting* ea);
|
|
|
|
private:
|
|
DomoticzConfig config;
|
|
int energy = 0.0;
|
|
};
|
|
|
|
#endif
|