Added support for IEC62056-21

This commit is contained in:
Gunnar Skjold
2021-11-16 20:07:47 +01:00
parent f192ddae81
commit 24025d6785
16 changed files with 794 additions and 404 deletions

View File

@@ -8,13 +8,15 @@ enum AmsType {
AmsTypeAidon = 0x01,
AmsTypeKaifa = 0x02,
AmsTypeKamstrup = 0x03,
AmsTypeIskra = 0x08,
AmsTypeLandis = 0x09,
AmsTypeSagemcom = 0x0A,
AmsTypeUnknown = 0xFF
};
class AmsData {
public:
AmsData();
AmsData(const char* d, bool substituteMissing);
void apply(AmsData& other);
@@ -52,7 +54,7 @@ public:
bool isThreePhase();
bool isTwoPhase();
private:
protected:
unsigned long lastUpdateMillis = 0;
uint8_t listType = 0, meterType = AmsTypeUnknown;
time_t packageTimestamp = 0;