ESP8266_swiss_army_board/src/app/RtcManager.h

22 lines
455 B
C++

#ifndef RTCMANAGER_H
#define RTCMANAGER_H
#include <RTClib.h>
class RtcManager
{
friend class SAB;
public:
DateTime getDateTime() const;
void setDate(const DateTime dateTime);
void setTime(const DateTime dateTime);
void setDateTime(const DateTime dateTime);
boolean hasLostPower() const;
float getTemperature() const;
protected:
RtcManager(RTC_DS3231 &rtc);
private:
RTC_DS3231 &_rtcRef;
};
#endif //RTCMANAGER_H