pduToXml translation fails for strings

Project: 
Gurux.DLMS.Python

pduToXml (GXDLMSTranslator.py) method fails to translate string pdu's as it is wrongly converting the pdu to a bytearray if isinstance(pdu, str):
instead of to GXByteBuffer.

A possible solution for this would be replacing
pdu = GXByteBuffer.hexToBytes(pdu)
by:
pdu = GXByteBuffer(GXByteBuffer.hexToBytes(pdu))

Status: 
Closed (fixed)
Priority: 
Normal
Category: 
Bug report
Component: 
Code
Reporter: 
zmiguel
Created: 
Mon, 06/17/2019 - 23:11
Updated: 
Mon, 09/09/2019 - 15:07

Comments

Body: Old » New
Kurumi's picture

Hi,

You are right. This is fixed and updated to GitHub. We are making a new version next week.

how can i able to run python framework in my pc?
I downloaded source code from github but i am not able to run.
please help me out
thanks

Kurumi's picture

Hi,

Please, if you have questions ask them in Forum section. This is reserved for issues.
You need to install python and run the example client using Python.

BR,
Mikko

Kurumi's picture

Status: Active » Closed (fixed)