Plant Watering Sensor
Logger Namespace Reference

This module is a logger for field testing. More...

Functions

void log (uint8_t oscillatorFrequency, uint16_t voltageValue, bool isButtonPressed)
 Log one entry into EEPROM. More...
 

Detailed Description

This module is a logger for field testing.

The logger, if enabled, stores a number of records in EEPROM in a round buffer. If the end of the buffer is reached, the first records are overwritten with the new ones.

Function Documentation

◆ log()

void Logger::log ( uint8_t  oscillatorFrequency,
uint16_t  voltageValue,
bool  isButtonPressed 
)

Log one entry into EEPROM.

Parameters
oscillatorFrequencyThe oscillator frequency to log.
voltageValueThe voltage value to log.
isButtonPressedThe state of the push button to log.