Returns an estimated percent of remaining battery based on pre-configured battery profiles
Namespace: Monnit.MineAssembly: MonnitMineAPI (in MonnitMineAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static double BatteryPercentageHelper( eGatewayBattery batteryType, double reportedVoltage ) |
Visual Basic |
---|
Public Shared Function BatteryPercentageHelper ( batteryType As eGatewayBattery, reportedVoltage As Double ) As Double |
Visual C++ |
---|
public: static double BatteryPercentageHelper( eGatewayBattery batteryType, double reportedVoltage ) |
F# |
---|
static member BatteryPercentageHelper : batteryType : eGatewayBattery * reportedVoltage : float -> float |
Parameters
- batteryType
- Type: Monnit.Mine..::..eGatewayBattery
[Missing <param name="batteryType"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(Monnit.Mine.eGatewayBattery,System.Double)"]
- reportedVoltage
- Type: System..::..Double
[Missing <param name="reportedVoltage"/> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(Monnit.Mine.eGatewayBattery,System.Double)"]
Return Value
Type: Double[Missing <returns> documentation for "M:Monnit.Mine.Gateway.BatteryPercentageHelper(Monnit.Mine.eGatewayBattery,System.Double)"]