Monnit Mine Java
ContentsIndexHome
PreviousUpNext
Sensor.BatteryPercentageHelper Method (eSensorBattery, double)
Syntax
Pascal
C++
Java
PHP
function BatteryPercentageHelper(batteryType: eSensorBattery; reportedVoltage: double): double;
Parameters 
Description 
eSensorBattery batteryType 
This shows if the sensor is using a coin-cell or 2x AA  
double reportedVoltage 
This is the voltage given when the sensor checks in 

 

returns a percentage from the voltage given to know if the sensor is using  

 

Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!