in the Index 3, I'm able to get OBIS codes and the data types like register extended register, etc.
The issue is I'm not able to decode this Index 2 in a readable format. Is there a method to decode this hex data buffer in terms of voltage, current, kwh, date, etc?
The first column looks like the date-time value. It is converted automatically if a target is a clock object and the logical name is 0.0.1.0.0.255. What logical name your meter is using?
For other columns, you need to know the data type and then you can convert it to the wanted format using cl_changeType method.
Hi,
Hi,
After you have read Capture objects you will know what kind of data is saved.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
The first column looks like the date-time value. It is converted automatically if a target is a clock object and the logical name is 0.0.1.0.0.255. What logical name your meter is using?
For other columns, you need to know the data type and then you can convert it to the wanted format using cl_changeType method.
If you check how this is done from cosem_setProfileGeneric.
https://github.com/Gurux/GuruxDLMS.c/blob/f39c6b11763ad9a434f7b0c0f80a7…
BR,
Mikko