Access to the real time clock.  
More...
Access to the real time clock. 
Real time clock class.
- Note
- Provides ability to set and read the ESP8266 RTC. 
      
        
          | uint64_t RtcClass::getRtcNanoseconds | ( |  | ) |  | 
      
 
Get nanoseconds from RTC. 
- Return values
- 
  
    | uint64_t | Quantity of nanoseconds since last RTC reset or set |  
 
 
 
      
        
          | uint32_t RtcClass::getRtcSeconds | ( |  | ) |  | 
      
 
Get seconds from RTC. 
- Return values
- 
  
    | uint32_t | Quantity of seconds since epoch |  
 
- Note
- Also updates RTC NVRAM 
 
 
Instantiate real time clock object. 
 
 
      
        
          | bool RtcClass::setRtcNanoseconds | ( | uint64_t | nanoseconds | ) |  | 
      
 
Set RTC nanoseconds. 
- Parameters
- 
  
    | nanoseconds | Value to set RTC to |  
 
- Return values
- 
  
  
 
 
      
        
          | bool RtcClass::setRtcSeconds | ( | uint32_t | seconds | ) |  | 
      
 
Set RTC. 
- Parameters
- 
  
    | seconds | Quantity of seconds since epoch |  
 
- Return values
- 
  
  
- Note
- Updates RTC NVRAM 
 
 
Quantity of RTC cycles since last update. 
 
 
Magic ID used to identify that RTC has been initialised. 
 
 
Global instance of real time clock object. 
- Note
- Use RTC.function to access real time clock functions 
- 
Example:     1 RTC.setRtcSeconds(1454225610); //set time to 07:33:30 2016-31-01 
 
 
 
Quantity of nanoseconds since epoch.