could you please kindly provide clarification on below functions in ANSCI C? what exactly will do?
obj_clearProfileGenericCaptureObjects(&profile_d.captureObjects); //what it does?
obj_clearProfileGenericBuffer(&profile_d.buffer); //what it does?
oa_clear(&connection.settings.releasedObjects, 1); //what it does?
cl_clear(&connection.settings); //what it does?
All of the above function will only clear the buffer i.e like memset() ? please confirm
All of the above function will release the heap memory i.e like free()? please confirm
After calling this cl_clear() function what are the steps needed to read the profile data again?
if connection.settings.releasedObjects of capacity and size 0 means?
obj_clearProfileGenericCaptureObjects will clear profile generic capture object list and it will release object list and information from the captured attribute and data index.
obj_clearProfileGenericBuffer will clear profile generic buffer data. It will release all the values from the buffer.
oa_clear will clear object array. It will clear all the COSEM obhects from the array.
cl_clear will clear client settings.
They do much more than just clear the buffer. If malloc is used they will release the heap.
If you call cl_clear it will clear object list (association view) and you need to read it again or add association objects manually.
releasedObjects is a list of COSEM objects that are created in the run time and what are not in the association view. Some meters might use COSEM objects in profile generic capture object list, but objects are not in association view. When capture object list is read objects are created and added to the releasedObjects if they are not in association view.
Hi,
Hi,
obj_clearProfileGenericCaptureObjects will clear profile generic capture object list and it will release object list and information from the captured attribute and data index.
obj_clearProfileGenericBuffer will clear profile generic buffer data. It will release all the values from the buffer.
oa_clear will clear object array. It will clear all the COSEM obhects from the array.
cl_clear will clear client settings.
They do much more than just clear the buffer. If malloc is used they will release the heap.
If you call cl_clear it will clear object list (association view) and you need to read it again or add association objects manually.
releasedObjects is a list of COSEM objects that are created in the run time and what are not in the association view. Some meters might use COSEM objects in profile generic capture object list, but objects are not in association view. When capture object list is read objects are created and added to the releasedObjects if they are not in association view.
BR,
Mikko