Date-time is sent as octet-string in DLMS. Because there is no way to find out that this is a date-time, you need to modify obj_toString and change the received byte array to date-time using the dlms_changeType -method.
I'm able to convert to below value for Passive Relay Time
Index: 2 Value: [300, 1800, 4, 12/11/2022 16:57:00 UTC--05:-30]
How can I convert from Utc to Normal time as similar APIs present in C# library but couldn't fine in ANSI C library ?
Index: 2 Value: [300,1800,5,"8/1/2022 11:00:00 AM"]
Hi,
Hi,
Date-time is sent as octet-string in DLMS. Because there is no way to find out that this is a date-time, you need to modify obj_toString and change the received byte array to date-time using the dlms_changeType -method.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Meter RTC Timezone is -> Index: 3 Value: 330
I'm able to convert to below value for Passive Relay Time
Index: 2 Value: [300, 1800, 4, 12/11/2022 16:57:00 UTC--05:-30]
How can I convert from Utc to Normal time as similar APIs present in C# library but couldn't fine in ANSI C library ?
Index: 2 Value: [300,1800,5,"8/1/2022 11:00:00 AM"]
Regards,
Vishal
Hi Vishal,
Hi Vishal,
open gxignore.h and un-comment DLMS_USE_UTC_TIME_ZONE. You can read more from this:
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock#deviation
BR,
Mikko