Fix for GetData

Project: 
Gurux.DLMS.Python

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)

Status: 
Closed (fixed)
Priority: 
Normal
Category: 
Bug report
Component: 
Code
Reporter: 
alyainfo
Created: 
Fri, 03/19/2021 - 10:25
Updated: 
Tue, 03/30/2021 - 09:34

Comments

Administrator's picture

Status: Active » Closed (fixed)