By nhzq , 28 August, 2022 Forums Gurux.DLMS Hi, I tried to translate PDU to XML but failed. It mentioned ValueError("size"). But the online translator manage to translate it PDU: C401C10018405722B020C49BA6 Online translator: <GetResponse> <GetResponseNormal> <!--Priority: HIGH ServiceClass: CONFIRMED invokeID: 1--> <InvokeIdAndPriority Value="C1" /> <Result> <Data> <!--92.542--> <Float64 Value="405722B020C49BA6" /> </Data> </Result> </GetResponseNormal> </GetResponse> Codes: data = 'C401C10018405722B020C49BA6' t = GXDLMSTranslator() xml = t.pduToXml(data) print(xml) Can you please advise on this matter? Thanks Hi, Hi, You are right. There was an issue in pduToXml for float and double values. This is fixed for version 1.0.134. BR, Mikko
Hi, Hi, You are right. There was an issue in pduToXml for float and double values. This is fixed for version 1.0.134. BR, Mikko
Hi,
Hi,
You are right. There was an issue in pduToXml for float and double values. This is fixed for version 1.0.134.
BR,
Mikko