Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
dmaunder
dmaunder's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
XML from Serial Port
[1 Reply]
09-Jul-2012 09:10 AM
Forum:
General Discussion
I am new to processing. I have a USB stick that is receiving XML data from a Smart Meter, the data looks like this
<InstantaneousDemand>
<DeviceMacId>0xxxxxxx</Devi<InstantaneousDemand>
<DeviceMacId>0xxxxxx</DeviceMacId>
<MeterMacId>0xxxxxxxx</MeterMacId>
<TimeStamp>0x178dbddb</TimeStamp>
<Demand>0x0000000000000671</Demand>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x03</DigitsRight>
<DigitsLeft>0x0f</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</InstantaneousDemand>
This is repeated, although other XML is also returned at other times.
I want to extract the Demand value out so I can graph it in real time, how do I process the XML?
Thankyou
«Prev
Next »
Moderate user : dmaunder
Forum