The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 canonical voltage in mV

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