same as last comment, I did enable DLMS_USE_UTC_TIME_ZONE macro in gxignore.h header file. but still facing same issue, cannot see any positive result.
Can you plz check once and let me know how can I fix this issue?
This is now checked and it seems to work as expected. I was checking your code and I notest that the deviation is not -330, it's 0. Reason for this is that you are using com_readRowsByRange. Use com_readRowsByRange2 and you can set the deviation. There is no deviation in struct tm.
Hi,
Hi,
I believe that you haven't defined DLMS_USE_UTC_TIME_ZONE.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock
BR,
Mikko
I did enable DLMS_USE_UTC
I did enable DLMS_USE_UTC_TIME_ZONE macro in gxignore.h header file. but still same result. no change.
Hi Mikko,
Hi Mikko,
same as last comment, I did enable DLMS_USE_UTC_TIME_ZONE macro in gxignore.h header file. but still facing same issue, cannot see any positive result.
Can you plz check once and let me know how can I fix this issue?
Regards,
Vishal
Hi,
Hi,
This is now checked and it seems to work as expected. I was checking your code and I notest that the deviation is not -330, it's 0. Reason for this is that you are using com_readRowsByRange. Use com_readRowsByRange2 and you can set the deviation. There is no deviation in struct tm.
Something like this:
Change time_pGFrom from struct tm to gxtime.
time_init3(&pgSelector_info.time_pGFrom, year, month, day, hour, min, sec, msec);
pgSelector_info.time_pGFrom.deviation = 330;
BR,
Mikko