-->
Page 1 of 3

Accessing the ESP8266 built-in RTC with Arduino IDE?

PostPosted: Thu Jul 30, 2015 12:29 am
by Anand Lobo
I've been searching, and so far what comes up is:
1) using the internal RTC with some other commandline programming method, not Arduino
2) using an external RTC with libraries.

So, my question is, are there functions I can call within the Arduino IDE to set and access the ESP8266 internal RTC? Is it possible?
If yes, would it work on something simple like the ESP-01, or would I need to solder special connections using a different PCB, or something else? I would like to be able to rely almost entirely on the ESP chip for my project.
I have not found clear answers to these questions with extensive Googling. Input is appreciated. :-)

Re: Accessing the ESP8266 built-in RTC with Arduino IDE?

PostPosted: Mon Aug 03, 2015 12:50 am
by Anand Lobo
Still been searching, and no luck. I'm beginning to think it might not be possible to access the RTC using the Arduino IDE.

Re: Accessing the ESP8266 built-in RTC with Arduino IDE?

PostPosted: Mon Aug 03, 2015 5:28 am
by tytower
https://github.com/esp8266/Arduino/tree ... 3db58751c0
RTC - Arduino Library for Ds1307 & Ds3231 compatible with esp8266.
maybe a lead there but just read about ,try wiki above

Re: Accessing the ESP8266 built-in RTC with Arduino IDE?

PostPosted: Mon Aug 03, 2015 9:07 am
by martinayotte
Anand Lobo wrote:access the ESP8266 internal RTC? Is it possible?


ESP8266 doesn't have an internal RTC.
You can either add an external one, or simply do an NTP Request at power-up and keep a software clock updated using Time library.