public interface PowerMeter extends Profile
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_VALUE
Default value returned when the power consumption is unknown.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccumulatedConsumption()
Get the accumulated power consumption in Watts / hour (positive integer).
|
int |
getInstantConsumption()
Get the instant power consumption in Watts (positive integer).
|
void |
requestAccumulatedConsumptionUpdate()
Ask for accumulated consumption to be updated.
|
void |
requestInstantConsumptionUpdate()
Ask for instant consumption to be updated.
|
void |
resetAccumulatedConsumption()
Reset the accumulated power consumption to zero.
|
static final int UNKNOWN_VALUE
int getInstantConsumption()
UNKNOWN_VALUE
if unknown.void requestInstantConsumptionUpdate() throws java.io.IOException
java.io.IOException
- if there is a communication error with the deviceint getAccumulatedConsumption()
UNKNOWN_VALUE
if unknown.void requestAccumulatedConsumptionUpdate() throws java.io.IOException
java.io.IOException
- if there is a communication error with the devicevoid resetAccumulatedConsumption()