Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Forums
  3. Need To SET Structure As Value In GXDLMSData Class

Need to SET structure as Value in GXDLMSData Class

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Tauheedul Maruf , 27 June, 2019
Forums
Gurux.DLMS

In GXDLMSData class Definition
1. logical_name | (static) octet-string
2. value | CHOICE {
-- simple data types
null-data [0], boolean [3], bit-string [4] and so on ...
-- complex data types
array [1],
structure [2],
compact-array [19]
}
So here we can set simple data types but we cannot set complex data types.
We need to SET complex data types (array or structure) in Data Class.

How can we do it?
Please suggest.
Thanks

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

You can use GXDLMSTranslator.XmlToValue for that. Give XML as a parameter. You can get XML if you read value first from the meter and change it to the XML using GuruxDLMSTranslator.

If you are using ANSI C or ANSI C++ you can build the structure by hand.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin