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. Fix For GetData

Fix for GetData

By alyainfo , 19 March, 2021
Project
Gurux.DLMS.Python
Status
Closed (fixed)

Fixes for some mistypings in GSDLMSClient.GetData

@@ -1126,7 +1211,11 @@ class GXDLMSClient(object):
ret = True
if ret and self.translator and data.moreData == RequestTypes.NONE:
if data.xml is None:
- data.xml = (GXDLMSTranslatorStructure(self.translator.outputType, self.translator.isOmitXmlNameSpace(), self.translator.isHex(), self.translator.getShowStringAsHex(), self.translator.comments, self.translator.tags))
+ data.xml = (GXDLMSTranslatorStructure(
+ self.translator.outputType,
+ self.translator.omitXmlNameSpace, self.translator.hex,
+ self.translator.showStringAsHex, self.translator.comments,
+ self.translator.tags))
pos = data.data.position
try:
data2 = data.data
@@ -1137,7 +1226,7 @@ class GXDLMSClient(object):
tmp.setUInt8(int(data.invokeId))
tmp.setUInt8(0)
tmp.set(data.data)
- data.setData(tmp)
+ data.data = tmp
elif data.command == Command.METHOD_RESPONSE:
tmp = GXByteBuffer((6 + data.data.size))
tmp.setUInt8(data.command)
@@ -1147,7 +1236,7 @@ class GXDLMSClient(object):
tmp.setUInt8(1)
tmp.setUInt8(0)
tmp.set(data.data)
- data.setData(tmp)
+ data.data = tmp
elif data.command == Command.READ_RESPONSE:
tmp = GXByteBuffer(3 + data.data.size)
tmp.setUInt8(data.command)

Priority
Normal
Category
Bug report
Profile picture for user Administrator

Administrator

5 years 7 months ago

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin