The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FusionInventory::Agent::Tools::Batteries

DESCRIPTION

This module provides functions to manage batteries informations

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().