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
Luotu: 
Ma, 06/17/2019 - 23:11
Päivitetty: 
Ma, 09/09/2019 - 15:07