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. Attribures and Methods Lists

Attribures and methods lists

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 germka , 23 August, 2021
Forums
Gurux.DLMS

Hi, Mikko.
Could you please guide me to a solution how to add a list of methods for my own interface data class and a list of data names and a list of method names in c++ libraries.

Profile picture for user Kurumi

Kurumi

4 years 9 months ago

Hi,

Hi,

I believe that the easier way to do it is if you take the CGXDLMSData object and modify it for your needs.
Implementing the methods you can look for the CGXDLMSRegister object and implement the Invoke-method and do what you need to do.

BR,
Mikko

germka

4 years 9 months ago

Thanks for the quick reply,

Thanks for the quick reply,
I have already created the class with the main methods by inheriting from the CGXDLMSObject class.
As I understand the Invoke method adds a list of methods, but what about the analogue of methods from NET libraries?

/// <inheritdoc cref = "IGXDLMSBase.GetNames" />
string [] IGXDLMSBase.GetNames ()
{
return new string [] {Internal.GXCommon.GetLogicalNameString (),
"Time",
"Time Zone",
"Status",
"Begin",
"End",
"Deviation",
"Enabled",
"Clock Base"
};
}

/// <inheritdoc cref = "IGXDLMSBase.GetMethodNames" />
string [] IGXDLMSBase.GetMethodNames ()
{
return new string [] {"Adjust to quarter", "Adjust to measuring period",
"Adjust to minute", "Adjust to preset time", "Preset adjusting time", "Shift time"};
}

Profile picture for user Kurumi

Kurumi

4 years 9 months ago

Hi,

Hi,

GetNames and GetMethodNames methods are not implemented for C++. The purpose of those methods is only to give a list of attributes and method names for developing purposes.

For client-side, you can add your methods like CGXDLMSRegister::Reset. On the server-side Invoke is called and you do what you want to do.

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