getPower() returns the power in mA used by a sensor while in use:
Now, I need to calculate how much battery is used by the registration of the sensor.
Does he value returned by getPower() indicate the mAH (mA per HOUR) or something else? If yes, is there a way to get the battery mAH in order to calculate the % of battery used by the sensor?
See Question&Answers more detail:os