-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use the rtctime.c code in a sketch with the Arduino IDE #3431
Comments
Hi, it's not clear what you are trying to achieve. Why would you want to do that? Anyway I don't think it's a good idea to do this. For example the |
Hi Lucas,
thanks for your answer.
I'm building a home automation project with ESP12-S. Especially I'll use
the deepsleep, but synchronous I need actual loacal time (without using
NTP). Every time, the ESP wakes up, the system clock begins with 0. But
the internal RTC Clock continues over deep sleep. Sadly I haven't found
a Library for using the RTC Clock. Therefore I was hopeful to use this
rtctime.c code.
Could you help to assist so?
Best regards - Hartmut.
…------ Originalnachricht ------
Von: "Lukáš Voborský" ***@***.***>
An: "nodemcu/nodemcu-firmware" ***@***.***>
Cc: "arduz" ***@***.***>; "Author" ***@***.***>
Gesendet: 10.05.2021 21:49:53
Betreff: Re: [nodemcu/nodemcu-firmware] how to use the rtctime.c code in
a sketch with the Arduino IDE (#3431)
Hi, it's not clear what you are trying to achieve. Why would you want
to do that?
Anyway I don't think it's a good idea to do this. For example the
lauxlib.h library is library that provides routines to talk to Lua. You
would need to rewrite the code completely to get rid off this but than
you will have nothing left.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3431 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHQGXDUUP2J7V2X757HVWQ3TNA2GDANCNFSM44Q6MQJA>.
--
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
|
One for #1010 I think you picked the wrong project. This firmware here is for writing Lua apps on ESP8266/ESP32. |
Hello, i have tried to use the code in https://github.com/nodemcu/nodemcu-firmware/blob/release/app/modules/rtctime.c in my sketch, but i couldn't find the nesessary libraries ( #include "module.h", #include "lauxlib.h", #include "rtc/rtctime_internal.h", #include "rtc/rtctime.h").
My question: Is it even possible to use such code direct in a sketch? Where can I find the named libraries? I want to use the RTC clock functionality (but not only the RTC RAM or timers) on my ESP12S.
Thanks for any answer.
The text was updated successfully, but these errors were encountered: