Implementation of a Sensor for the DS3231 Real Time Clock.
Definition DS3231Sensor.h:12
void readDataPacket(uint8_t *&packet) override
Reads timestamp data from RTC (plus temperature)
Definition DS3231Sensor.cpp:37
String decodeToCSV(uint8_t *&packet) override
Decodes a packet into a CSV string.
Definition DS3231Sensor.cpp:66
String readData() override
Reads timestamp data from RTC (plus temperature)
Definition DS3231Sensor.cpp:89
RTC_DS3231 rtc
Definition DS3231Sensor.h:14
void setTime(int year, int month, int day, int hour, int minute, int second)
Utility function to set the RTC's time, easier to use a separate Arduino program to do this.
Definition DS3231Sensor.cpp:109
DS3231Sensor()
Default constructor for the BME680Sensor class.
Definition DS3231Sensor.cpp:9
bool verify() override
Verifies that the sensor is connected.
Definition DS3231Sensor.cpp:31
int attempt_number
Definition Device.h:19
Parent class for sensor objects.
Definition Sensor.h:13
unsigned long minimum_period
Definition Sensor.h:15