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...

Functions

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

Variables

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

Detailed Description

Access to the real time clock.

Real time clock class.

Note
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.

Parameters
secondsValue to set RTC seconds to
Return values
boolTrue on success

Variable Documentation

RtcClass RTC

Global instance of real time clock object.

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