I was able to accomplish setting the time through the browser using mktime().
Thanks for the suggestion!
Explore... Chat... Share...
Bill2k wrote:My sketch already has a function to get the time from an ntp server. I wanted to add this method to set the time in case the clock gets mounted in an area without wifi. It was a 'plan b'.
I think I'm gonna try to do something with mktime to see if that accomplishes what I want.
sint64 start = strtoll(hack, NULL, 10);
start -= millis();
_StartSeconds = (u32)(start / 1000); // Here's your seconds since
_StartFraction = (u16)(start % 1000); // Here's your milli-seconds
LOG(LL_INQCLOCK, "Manual Time Sync");
_State = MANUAL;
Hi i try to use esp8266 nodemcu with dcs bios i te[…]
Sorry to hear that. You may find some guidelines f[…]
Hi All, I have a Lolin NodeMCU set up to repeated[…]
Hi, This is my first post in this forum...greeting[…]
I've got a V1 NODEMCU it says Amica on the bottom[…]
Hello. My apologies if I am doing this wrong but […]
Hi all Some time ago I built a LED clock. It work[…]
power mode 1 yellowed.JPG Inkedpower mode 2 yell[…]
Howdy, I'm moving a project from an Arduino Nano […]
I think I understand now... The ESP n[…]
@crbxy Did you get a resolution to this problem? […]
Thanks a lot for sharing the update.
I think you may get some help if you post your que[…]
You'll need to do this with some outboard circuit[…]
Hello, I was wondering.... is it really necessary […]
fixed in https://github.com/espressif/ESP8266_NONO[…]
Hello, Looks like the users of this thread faced a[…]
A little preview of my code and results before I g[…]