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

5 months 2 weeks 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

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Landisgyr meter
  • GxDateTime always return DayOfWeek as FF
  • Asynchronous support in Gurux DLMS stack (.NET)?
  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin