By george@n, 31 August, 2025 Forums Gurux DLMS for ANSI C Using the API's provided, how to prepare the Profile General to look like in your example below? What need to be done before calling cl_write() to prepare array and structures. https://www.gurux.fi/sites/default/files/issues/Profile%20Generic%20att… Hi, You want to write… Hi, You want to write capture objects for the profile generic object. https://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric set the capture objects like this: gxTarget* capture; //Add clock object. capture = (gxTarget*)malloc(sizeof(gxTarget)); capture->attributeIndex = 2; capture->dataIndex = 0; arr_push(&pg.captureObjects, key_init(&clock1, capture)) Then write attribute #3. BR, Mikko
Hi, You want to write… Hi, You want to write capture objects for the profile generic object. https://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric set the capture objects like this: gxTarget* capture; //Add clock object. capture = (gxTarget*)malloc(sizeof(gxTarget)); capture->attributeIndex = 2; capture->dataIndex = 0; arr_push(&pg.captureObjects, key_init(&clock1, capture)) Then write attribute #3. BR, Mikko
Hi, You want to write…
Hi,
You want to write capture objects for the profile generic object.
https://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
set the capture objects like this:
gxTarget* capture;
//Add clock object.
capture = (gxTarget*)malloc(sizeof(gxTarget));
capture->attributeIndex = 2;
capture->dataIndex = 0;
arr_push(&pg.captureObjects, key_init(&clock1, capture))
Then write attribute #3.
BR,
Mikko