ModularSensors > Classes > Variable > RainCounterI2C_Depth
ModularSensors > Modules > Trinket Tipping Bucket > RainCounterI2C_Depth


RainCounterI2C_Depth class

The Variable sub-class used for the depth of rain output from an Adafruit Trinket based I2C tipping bucket counter.

  • gives the number of mm since the last reading.

Base classes

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

Constructors, destructors, conversion operators

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

Function documentation

RainCounterI2C_Depth(RainCounterI2C* parentSense, const char* uuid = "", const char* varCode = BUCKET_RAIN_DEFAULT_CODE) explicit

Construct a new RainCounterI2C_Depth object.

Parameters
parentSense The parent RainCounterI2C 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 "RainCounterI2CVol".

RainCounterI2C_Depth()

Construct a new RainCounterI2C_Depth object.