public interface PowerMeter extends Profile
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_VALUE
Default value returned when the power consumption is unknown.
|
UNKNOWN_NAME
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.
|
getChildren, getDescriptor, getName, getParent
static final int UNKNOWN_VALUE
int getAccumulatedConsumption()
UNKNOWN_VALUE
if unknown.int getInstantConsumption()
UNKNOWN_VALUE
if unknown.void requestAccumulatedConsumptionUpdate() throws IOException
IOException
- if there is a communication error with the devicevoid requestInstantConsumptionUpdate() throws IOException
IOException
- if there is a communication error with the devicevoid resetAccumulatedConsumption()