I was able to accomplish setting the time through the browser using mktime().
Thanks for the suggestion!
Explore... Chat... Share...
Moderator: igrr
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, have you made any full tutorial? Including cir[…]
Have you cross-checked your DHT22 sensor with an A[…]
I am doing a webserver using the code at: https[…]
Hello Jan, Ive the same problem as you've describe[…]
oups! the right adress is IPAddress subnet(255, […]
Top 3 tai nghe Bluetooth có pin trâu nhất hiện na[…]
Hi, I am working on a project, where we need to c[…]
For memory expansion of ESP8266 boards, you can se[…]
Just registed to come here and say the same. I wa[…]
Hi I've created example keyboard and mouse contro[…]
Overview: Hello all, I am doing an internship […]
It should be possible to make this work with those[…]
Breadboards may need jumpers for continuity on the[…]
Follow US on Twitter and get ESP8266 news and updates first.