This commit is contained in:
Gunnar Skjold
2024-06-04 20:33:03 +02:00
parent e7b496280d
commit 32afea2817
2 changed files with 56 additions and 41 deletions

View File

@@ -100,12 +100,16 @@ void AmsData::apply(AmsData& other) {
}
void AmsData::apply(OBIS_code_t obis, double value) {
if(obis.sensor == 0 && obis.gr == 0 && obis.tariff == 0) {
meterType = value;
}
if(obis.gr == 1) {
if(obis.sensor == 96) {
if(obis.tariff == 0) {
meterId = String((long) value, 10);
return;
} else if(obis.tariff == 1) {
meterModel = String((long) value, 10);
return;
}
}
}