I am trying to read Load profile data from profile generic.I can read all data from capture objects and buffer.I am using ESP32 controller and C language.
but when i call function for read Load profile data,Every time it will occupy some memory(RAM) which will not free by controller so after some time controller will crash due to low RAM
Same thing is happen in billing also.Please help me to solve this issue, My code is as Below.
oa_init(&objects);
ret = oa_getObjects(&_meterSettings.objects, DLMS_OBJECT_TYPE_PROFILE_GENERIC, &objects);
dlmsbb_init(&ba);
I believe that there are capture objects that are not in _meterSettings.objects. You need to release them like this:
oa_clear(&_meterSettings.releasedObjects);
Other problem is that you are releasing buffer after each row and I believe this is the issue here.
You need to release buffers after you have loop all the rows.
Hi,
Hi,
I believe that there are capture objects that are not in _meterSettings.objects. You need to release them like this:
oa_clear(&_meterSettings.releasedObjects);
Other problem is that you are releasing buffer after each row and I believe this is the issue here.
You need to release buffers after you have loop all the rows.
BR,
Mikko