ModularSensors > Classes > Variable > TIINA219_Power
ModularSensors > Modules > TI INA219 > TIINA219_Power


TIINA219_Power class

The Variable sub-class used for the power use output calculated from the voltage and current measured by a TI INA219 power and current monitor.

Base classes

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

Constructors, destructors, conversion operators

TIINA219_Power(TIINA219* parentSense, const char* uuid = "", const char* varCode = INA219_POWER_MW_DEFAULT_CODE) explicit
Construct a new TIINA219_Power object.
TIINA219_Power()
Construct a new TIINA219_Power object.
~TIINA219_Power()
Destroy the TIINA219_Power object - no action needed.

Function documentation

TIINA219_Power(TIINA219* parentSense, const char* uuid = "", const char* varCode = INA219_POWER_MW_DEFAULT_CODE) explicit

Construct a new TIINA219_Power object.

Parameters
parentSense The parent TIINA219 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 "TIINA219Power".

TIINA219_Power()

Construct a new TIINA219_Power object.