-->
Page 1 of 2

RTC Time Module library?

PostPosted: Wed Jun 14, 2017 11:35 am
by Borisw37
How do I add the RTC Time Module library to Arduino development environment?
https://nodemcu.readthedocs.io/en/maste ... s/rtctime/


Code: Select allrtctime.set(123456);
rtctime.dsleep(1000000);

Compiler complains that "rtctime was not declared in this scope"

Is this module for LUA only?

Re: RTC Time Module library?

PostPosted: Wed Jun 14, 2017 11:46 am
by martinayotte
Yes, this is LUA only ...
But you can use ESP.deepSleep() in Arduino.

Re: RTC Time Module library?

PostPosted: Wed Jun 14, 2017 1:03 pm
by Borisw37
That is what I'm using now but the "RTC Time Module" has some cool additional features.
Maybe I'll try to port it.

Re: RTC Time Module library?

PostPosted: Wed Jun 14, 2017 3:22 pm
by torntrousers
Borisw37 wrote:That is what I'm using now but the "RTC Time Module" has some cool additional features.
Maybe I'll try to port it.


The ESP8266 (and ESP32) / Arduino could really do with a better time/sleep library, able to do things like the RTC Time module and things like regular short and long sleeps synchronized with real time in a power efficent way, etc. If you or anyone else is interested in working on this, perhaps in a Github project, I'd be happy to help towards that too, let me know.