ModularSensors > Classes > Variable > ProcessorStats_FreeRam
ModularSensors > Modules > Processor Metadata > ProcessorStats_FreeRam


ProcessorStats_FreeRam class

The Variable sub-class used for the free RAM measured by the MCU.

This is the amount of free space on the processor when running the program. This is just a diagnostic value. This number should always remain the same for a single logger program. If this number is not constant over time, there is a memory leak and something wrong with your logging program.

Base classes

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

Constructors, destructors, conversion operators

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

Function documentation

ProcessorStats_FreeRam(ProcessorStats* parentSense, const char* uuid = "", const char* varCode = PROCESSOR_RAM_DEFAULT_CODE) explicit

Construct a new ProcessorStats_FreeRam object.

Parameters
parentSense The parent ProcessorStats 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 "FreeRam".

ProcessorStats_FreeRam()

Construct a new ProcessorStats_FreeRam object.