Page 1 of 2

RTC

Posted: Wed Jun 28, 2017 12:05 pm
by MitchSF
Hi All,

I understand that RTC functions are not yet part of the core. I just want to set and read the time. Would you please point me to an example that directly uses API calls to accomplish this? I haven't found any, at least any that I understand.

Thanks in advance.

Re: RTC

Posted: Wed Jun 28, 2017 2:41 pm
by ESP_krzychb

Re: RTC

Posted: Wed Jun 28, 2017 3:49 pm
by MitchSF
Hi, thanks for the reply.

Is there a similar example for the Arduino core?

Re: RTC

Posted: Wed Jun 28, 2017 8:58 pm
by ESP_krzychb
Sorry for missing this question is for Arduino.
I do not see similar example in Arduino repository, but I see some API implemented https://github.com/espressif/arduino-es ... hal-time.c.

Re: RTC

Posted: Wed Jun 28, 2017 10:08 pm
by f.h-f.s.
You can probably also call the same functions as in the esp-idf example in arduino.

Re: RTC

Posted: Thu Jun 29, 2017 12:07 pm
by MitchSF
Thank you. I'll see what I can do. Hopefully RTC support will come soon.

Re: RTC

Posted: Mon Jul 03, 2017 5:53 am
by rajkumar patel
hi all,

this thread is too old and suggestions were of last year. is there any latest update regarding rtc and are APIs made available for rtc functionalities in current idf? :?:

Re: RTC

Posted: Mon Jul 03, 2017 6:18 am
by ESP_Sprite
Errm... no? First of all, the thread is from a few days ago and secondly they're discussing Arduino, not esp-idf.

Re: RTC

Posted: Mon Jul 03, 2017 6:38 am
by rajkumar patel
hi ESP_Sprite,

it's always great to hear from you ESP_sprite, thanks for quick response.
yeah, last post was made few days back only, but suggestions above that, were from 2016 dec or earlier.
sure, this RTC titled is having discussion for arduino rtc related stuff, but i posted here because in general search i didn't get any esp_idf rtc queries, so i posted here. :(

sir, my requirement is v.straight forward, i want to use rtc functionality, means set and get time from rtc module and for poweroff conditions i'm willing to put an extra button cell or any supply to keep my rtc ticking on.
could you please guide me by giving your valuable suggestions or comments on esp_idf rtc? :)

Re: RTC

Posted: Mon Jul 03, 2017 6:48 am
by rajkumar patel
heartily sorry,
i googled my query and i got directed to the arduino 32 forum and somehow, i missed the fact that i'm making looking under arduino discussion. i should rather have searched for this under esp32 sdk.