Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. How To Prepare Profile General For Writing?

How to prepare Profile General for writing?

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…

Profile picture for user Kurumi

Kurumi

2 months ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
  • Failed to receive reply from the device in given time.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin