Rainforest Automation, Inc.
EAGLE™
Uploader API Manual
20
Price Readings
Price readings from the meter are reported as a hexadecimal integer with a format instruction to
place the decimal point.
Here is a typical
PriceCluster
notification:
<PriceCluster>
<DeviceMacId>0x00158d00001ab01e</DeviceMacId>
<MeterMacId>0x00078100011cf431</MeterMacId>
<TimeStamp>0x1a462b4d</TimeStamp>
<Price>0x0000007d</Price>
<Currency>0x0348</Currency>
<TrailingDigits>0x03</TrailingDigits>
<Tier>0x01</Tier>
<RateLabel>Set by User</RateLabel>
</PriceCluster>
The values from this notification are:
Price reading = 7D (hex) = 125 (decimal)
Trailing Digits = 3
Currency Code = 348 (hex) = 840 (decimal)
The actual value of the Price is determined by placing the decimal point 3 digits from the right.
The Currency Code indicates that the value is in US Dollars (see ISO 4217). So the final price
is $0.125.