Dear developers,
Here is the issue I found in cosem.c: cosem_getDateTimeFromOctetStringBase() returns invalid results, though it parses and gets correct interim result in dlms_getData(), and variable tmp is filled properly. It seems, that cosem function clears variable containing proper pointer and allocates new memory somewhere else, so error code is DLMS_OK.
Please, could you check this function and fix the bug?
Thank you in advance.