Monnit Mine Java
ContentsIndexHome
PreviousUpNext
Gateway.BatteryPercentageHelper Method (double, double, double, double, double, double, double)
Syntax
Pascal
C++
Java
PHP
function BatteryPercentageHelper(zero: double; ten: double; twentyFive: double; fifty: double; seventyFive: double; oneHundred: double; reportedVoltage: double): double;
Parameters 
Description 
double zero 
the voltage that would be read if the gateways battery is about to die  
double ten 
the voltage that would be read if the gateways battery is around 10% battery life  
double twentyFive 
the voltage that would be read if the gateways battery is around 25% battery life  
double fifty 
the voltage that would be read if the gateways battery is around 50% battery life  
double seventyFive 
the voltage that would be read if the gateways battery is around 75% battery life  
double oneHundred 
the voltage that would be read if the gateways battery is around 100% battery life  
double reportedVoltage 
This is the voltage given when the gateway checks in 

 

a more advanced version of the BatteryPercentageHelper if you created your own battery for the gateway  

 

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