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;
what I am saying this is wrong: time_t rtc = (uin[…]
This is actually a bug in the program in https://w[…]
Great news that you've got it working! :D Thanks […]
Hey, so My NodeMCU ESP8266 Module has worked fine […]
Looks very interesting. I see that it recognized[…]
I forgot to add, I've found that the ESP8266 in so[…]
The pin labelling depends on which board is being […]
Hi. I just tried out this project https://random[…]
I'm not familiar with the libraries you mention. […]
You might also show your hardware and wiring confi[…]
Need more details... computer details Windows, […]
I can't really help you with MQTT. It's on my lis[…]
Hi everyone, I read the datasheet and cannot fin[…]
I personally use the raw NonOS SDK toolchain built[…]
It turns out that VSCode/PlatformIO uses NonOS SDK[…]
Always a nice topic: ANSI vs Unicode :idea:
I am also finding a led control tutorial on youtub[…]
because of this
Would you mind sharing your code? I am facing the […]
Hi all, since I can't use any modules for my usec[…]