Modem_BatteryPercent class

The Variable sub-class used for the battery charge percent measured by a modem.

Whether or not this value is meaningful depends on the specific modem subclass and the wiring of the logger setup.

The value is has units of percent and has a resolution of 1%.

Base classes

class Variable
The variable class for a value and related metadata.

Constructors, destructors, conversion operators

Modem_BatteryPercent(loggerModem* parentModem, const char* uuid = "", const char* varCode = "modemBatteryPct") explicit
Construct a new Modem_BatteryPercent object.
~Modem_BatteryPercent()
Destroy the Modem_BatteryPercent object - no action needed.

Function documentation

Modem_BatteryPercent::Modem_BatteryPercent(loggerModem* parentModem, const char* uuid = "", const char* varCode = "modemBatteryPct") explicit

Construct a new Modem_BatteryPercent object.

Parameters
parentModem The parent modem providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "modemBatteryPct".