Skip to content

Class CayenneLPP::CayenneLPP

template <size_t static_size>

ClassList > CayenneLPP > CayenneLPP

Public Functions

Type Name
CayenneLPP ()
constexpr uint8_t * getBuffer (void)
This gets a pointer to the statically allocated internal buffer.
constexpr uint8_t getSize (void)
This gets the amount of bytes currently stored in the buffer.
void reset (void)
Reset the cursor back to zero.
const uint8_t setMeasurement (const uint8_t channel, const Measurement_t * measurement)
Store a new measurement in the encoder buffer.
~CayenneLPP ()
Since this class is initialized statically, there is nothing to clean up.

Public Functions Documentation

function CayenneLPP

inline CayenneLPP::CayenneLPP::CayenneLPP () 

function getBuffer

This gets a pointer to the statically allocated internal buffer.

inline constexpr uint8_t * CayenneLPP::CayenneLPP::getBuffer (
    void
) 

Returns:

Pointer to the buffer

function getSize

This gets the amount of bytes currently stored in the buffer.

inline constexpr uint8_t CayenneLPP::CayenneLPP::getSize (
    void
) 

Returns:

The amount of bytes stored

function reset

inline void CayenneLPP::CayenneLPP::reset (
    void
) 

function setMeasurement

Store a new measurement in the encoder buffer.

inline const uint8_t CayenneLPP::CayenneLPP::setMeasurement (
    const uint8_t channel,
    const Measurement_t * measurement
) 

Returns:

The cursor position in the internal buffer

function ~CayenneLPP

inline CayenneLPP::CayenneLPP::~CayenneLPP () 

The documentation for this class was generated from the following file src/CayenneLPP.hpp