mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 15:37:03 +00:00
30 lines
640 B
C++
30 lines
640 B
C++
/**
|
|
* @copyright Utilitech AS 2023
|
|
* License: Fair Source
|
|
*
|
|
*/
|
|
|
|
#ifndef _METERCOMMUNICATOR_H
|
|
#define _METERCOMMUNICATOR_H
|
|
|
|
#include <Arduino.h>
|
|
#if defined(AMS_REMOTE_DEBUG)
|
|
#include "RemoteDebug.h"
|
|
#endif
|
|
#include "AmsData.h"
|
|
#include "AmsConfiguration.h"
|
|
|
|
class MeterCommunicator {
|
|
public:
|
|
virtual ~MeterCommunicator() {};
|
|
virtual void configure(MeterConfig&, Timezone*);
|
|
virtual bool loop();
|
|
virtual AmsData* getData(AmsData& meterState);
|
|
virtual int getLastError();
|
|
virtual bool isConfigChanged();
|
|
virtual void ackConfigChanged();
|
|
virtual void getCurrentConfig(MeterConfig& meterConfig);
|
|
};
|
|
|
|
#endif
|