I need to put a few measurements in one register for example the "active energy" in the moment, daily profile and mouth profile. And as for as I know its impossible to use an array as register's data type in the protocol. So does the library for C++ implement any ways to do it and if not, is it any way to put a few measurements in one register?
Hi,
Hi,
You can add multiple values for an array like this:
CGXDLMSData* arrayObject = new CGXDLMSData("YOUR_OBIS_CODE");
CGXDLMSVariant value;
value.vt = DLMS_DATA_TYPE_STRUCTURE;
value.Arr.push_back(CGXDLMSVariant((unsigned short)1));
value.Arr.push_back(CGXDLMSVariant((unsigned char)2));
arrayObject->SetValue(value);
items.push_back(arrayObject);
BR,
Mikko
Okay. Thank you!
Okay.
Thank you!