![Rainforest Automation RFA-Z109 EAGLE Manual Download Page 17](http://html2.mh-extra.com/html/rainforest-automation/rfa-z109-eagle/rfa-z109-eagle_manual_3460132017.webp)
Rainforest Automation, Inc.
EAGLE™
Uploader API Manual
17
3. Command: get_history_data
Send the
get_history_data
command to get a series of summation values over an interval of
time. In response, the
EAGLE
™ will send a
HistoryData
fragment containing a series of
CurrentSummation
fragments
– one for each sample over the interval.
<LocalCommand>
<Name>get_history_data</Name>
<MacId>0xFFFFFFFFFFFFFFFF</MacId>
<StartTime>0xFFFFFFFF</StartTime>
[<EndTime>0xFFFFFFFF</EndTime>]
[<Frequency>0x0000</Frequency>]
</LocalCommand>
Element
Range
Description
MacId
16 hex digits
MAC Address of
EAGLE
™ ZigBee radio
StartTime
Up to 8 hex digits
UTC Time (offset in seconds from
00:00:00 01Jan2000) of the start of the
history interval. If StartTime is older than
the oldest sample, then the interval will
start from the oldest sample.
EndTime
Up to 8 hex digits
UTC Time (offset in seconds from
00:00:00 01Jan2000) of the end of the
history interval. If not specified, EndTime
will be the current time.
Frequency
4 hex digits
Requested number of seconds between
samples. Availability limited by what has
been collected by
EAGLE
™. Default is
all of the existing samples in the interval.
4. Command: get_ profile_data
Send the
get_profile_data
command to have the
EAGLE
™ retrieve interval data information
stored in the meter. The
EAGLE
™ will send a
ProfileData
fragment in response.
Note that the tag <RavenCommand> is used instead of <LocalCommand>.
<RavenCommand>
<Name>get_profile_data</Name>
<DeviceMacId>0xFFFFFFFFFFFFFFFF</DeviceMacId>
[<MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId>]
<NumberOfPeriods>0x00</NumberOfPeriods>
<EndTime>0xFFFFFFFF</EndTime>
<IntervalChannel>{enumeration}</IntervalChannel>
</RavenCommand>