NAME
FusionInventory::Agent::Tools::Batteries
DESCRIPTION
This module provides functions to manage batteries information
FUNCTIONS
sanitizeBatterySerial($serial)
Returns clean battery serial.
batteryFields()
Returns the list of supported/expected battery fields
getCanonicalVoltage($value)
Returns the list of supported/expected battery fields
getCanonicalCapacity($value,$voltage)
Returns the canonical capacity in mWh
Voltage should be provide in the case capacity is given in mAh or Ah and must be an number in mV as returned by getCanonicalVoltage().