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. DLMS Server In ESP32, Register Object Value Save and Load Issue.

DLMS Server in ESP32, Register object value save and load issue.

By Sravanti , 4 June, 2025
Forums
Gurux.DLMS

Hi Kurumi,

I am trying to write data in value attribute in register object and load using Serializer_Save and Serializer_Load. But I am facing issue with writing the data. Using GXDLMSDirectore when write some data and click on WRITE button, 0 is reflecting and in ESP32 server code, reference value is not reflecting the same. Its always 0.

But the same thing is working fine with GxData Object, able to write and read the value attribute.
Is there any other settings that I need to do specifically for Register objects? And how to change the DLMS_Data_Type of value attribute for any object?
Please let me know.

Thank you.

Profile picture for user Kurumi

Kurumi

1 year ago

Hi, Usually register values…

Hi,

Usually register values are not written to the meter. You need to remove this line
IGNORE_ATTRIBUTE_BY_TYPE(DLMS_OBJECT_TYPE_REGISTER, GET_ATTRIBUTE(2)),

from NON_SERIALIZED_OBJECTS.

You define the data type when you create the data object.

https://github.com/Gurux/GuruxDLMS.c/blob/cf36e3a16fb1de260d4c025c1aa0a…

BR,
Mikko

BR,
Mikko

Sravanti

1 year ago

Thank you Kurumi, Tried what…

Thank you Kurumi,

Tried what you mentioned. Still facing the issue. In GXDLMSDirector, attribute 2 datatype is None and UIDatatype is String. How can I change UIDatatype as well? and y still we not able to read the data whats being been written using director?

Thank you.

Profile picture for user Kurumi

Kurumi

1 year ago

Hi, You need to add string…

Hi,

You need to add string data to the object as the link I shared. Did you allocate memory for the string?

The UI data type originates from the OBIS codes defined in DLMS standards and you can't set that in the meter side.

BR,
Mikko

Sravanti

1 year ago

Hi, Actually, I thought that…

Hi,

Actually, I thought that we can write uint16 data and read the same. So, I allocated memory for uint16_t value. Is it mandatory that we need GX_OCTET_STRING?? Can you please elaborate a bit and explain?

Thank you.

Sravanti

1 year ago

Hi, I have IGNORE_ATTRIBUTE…

Hi,
I have commented IGNORE_ATTRIBUTE_BY_TYPE (DLMS_OBJECT_TYPE_REGISTER, GET_ATTRIBUTE (2)), this line and added string data to the object. But still when I try to write from GXDLMSDirector, it is saying access denied for read/write.
Am I missing something?
My major doubt is can we write register objects. If yes, then what are the list of objects that actually we can write?

Thankyou.

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin