Apply previous state when receiving only accumulated values from meter

This commit is contained in:
Gunnar Skjold
2023-09-05 08:57:15 +02:00
parent b435f0eaaf
commit bcea9698dd
3 changed files with 17 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ struct AmsOctetTimestamp {
class IEC6205675 : public AmsData {
public:
IEC6205675(const char* payload, uint8_t useMeterType, MeterConfig* meterConfig, DataParserContext &ctx);
IEC6205675(const char* payload, uint8_t useMeterType, MeterConfig* meterConfig, DataParserContext &ctx, AmsData &state);
private:
CosemData* getCosemDataAt(uint8_t index, const char* ptr);