Hi there,
I have a project to read push messages and trying to figure out what is in the message. I have found the gurux translator, and I faced an issue with this.
After the translate, I wanted to parse the given xml but I got this exception:
[Fatal Error] :49:13: The element type "structure" must be terminated by the matching end-tag "</structure>".
There was a structure element without ending. It is a known issue with the translator?
Or is there any other tool to get the data from the byte stream? Or is there any chance to get the translated data in object/json or any more managable format?
Here is the xml:
<!-- Data length is 182 and there are 951 bytes. -->
<WRAPPER len="190" >
<TargetAddress Value="1" />
<SourceAddress Value="102" />
<PDU>
<data-notification>
<long-invoke-id-and-priority>2</long-invoke-id-and-priority>
<!-- 3/26/25, 6:58:14 PM -->
<date-time>07E9031A03103A0EFF003C00</date-time>
<notification-body>
<data-value>
<structure>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<array>
<structure>
<!-- 2/14/24, 2:50:13 PM -->
<octet-string>07E8020E030C320DFF003C00</octet-string>
<enum>85</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/14/24, 2:49:37 PM -->
<octet-string>07E8020E030C3125FF003C00</octet-string>
<enum>79</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/13/24, 2:20:10 PM -->
<octet-string>07E8020D020C140AFF003C00</octet-string>
<enum>85</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/13/24, 2:19:22 PM -->
<octet-string>07E8020D020C1316FF003C00</octet-string>
<enum>79</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
</array>
</structure>
</data-value>
</notification-body>
</data-notification>
</PDU>
</WRAPPER>
Hi, Have you checked the…
Hi,
Have you checked the push listener example?
https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.push.li…
BR,
Mikko