Added another proprietary L&G

This commit is contained in:
Gunnar Skjold 2023-03-30 09:00:12 +02:00
parent 0d923e30d6
commit 061f6433d6

View File

@ -3,6 +3,9 @@
LNG2::LNG2(const char* payload, uint8_t useMeterType, MeterConfig* meterConfig, DataParserContext &ctx, RemoteDebug* debugger) {
CosemBasic* h = (CosemBasic*) payload;
if(h->length == 0x0e) {
meterType = AmsTypeLandisGyr;
this->packageTimestamp = ctx.timestamp;
Lng2Data_3p* d = (Lng2Data_3p*) payload;
this->l1voltage = ntohs(d->u1.data);
this->l2voltage = ntohs(d->u2.data);