Files
UtilitechAS.amsreader-firmware/lib/RealtimePlot/include/RealtimePlot.h
Gunnar Skjold 2c96b4d94f Fixed tariff peaks on wrong date and time (#1159)
* Trying to fix tariff on wrong date. Also some code cleanup

* Fix issue for ex DLMS where accumulated is always included

* Stricter time restrictions when updating history

* Adjustments after testing
2026-04-09 11:41:58 +02:00

31 lines
493 B
C++

/**
* @copyright Utilitech AS 2023-2026
* License: Fair Source
*
*/
#ifndef _REALTIMEPLOT_H
#define _REALTIMEPLOT_H
#include "AmsData.h"
#define REALTIME_SAMPLE 10000
#define REALTIME_SIZE 360
class RealtimePlot {
public:
RealtimePlot();
void update(AmsData& data);
int32_t getValue(uint16_t req);
int16_t getSize();
private:
int8_t* values;
uint8_t* scaling;
unsigned long lastMillis = 0;
double lastReading = 0;
uint16_t lastPos = 0;
};
#endif