Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Real Time Clock

Access to the real time clock. More...


uint32_t RtcClass::getRtcSeconds ()
 Get seconds from RTC. More...
bool RtcClass::setRtcSeconds (uint32_t seconds)
 Set RTC seconds. More...


RtcClass RTC
 Global instance of real time clock object. More...

Detailed Description

Access to the real time clock.

Real time clock class.

Provides ability to set and read the ESP8266 RTC.

Function Documentation

uint32_t RtcClass::getRtcSeconds ( )

Get seconds from RTC.

Return values
uint32_tQuantity of seconds since last RTC reset or set
bool RtcClass::setRtcSeconds ( uint32_t  seconds)

Set RTC seconds.

secondsValue to set RTC seconds to
Return values
boolTrue on success

Variable Documentation

RtcClass RTC

Global instance of real time clock object.

Use RTC.function to access real time clock functions
1 RTC.setRtcSeconds(0);