Fixed timestamp bug

This commit is contained in:
Gunnar Skjold 2025-01-09 15:35:22 +01:00
parent 067aa0c6cb
commit 1d4e7e564d
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ enum CosemType {
CosemTypeString = 0x0A,
CosemTypeDLongSigned = 0x05,
CosemTypeDLongUnsigned = 0x06,
CosemTypeSigned = 0x0F,
CosemTypeLongSigned = 0x10,
CosemTypeUnsigned = 0x11,
CosemTypeLongUnsigned = 0x12,

View File

@ -740,6 +740,8 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo
meterTimestamp = tz.toUTC(ts);
} else if(meterType == AmsTypeAidon) {
meterTimestamp = ts - 3600; // 21.09.24, the clock is now correct
} else {
meterTimestamp = ts;
}
}