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;
Did you look at the tutorial I pointed you to in […]
You do not need the complexity of running a MQTT s[…]
Hello everyone. I use an ESP8266 to update the dat[…]
As the previous answerer said, this type of garba[…]
hi, i want to log data to my sd card and send it […]
Many times, explaining a problem to someone else i[…]
I’m using an ESP 8266 to control a pair of relays.[…]
Hi, I can't set time zone in ESP8266 module. Plea[…]
I have a sketch that reads a RFID Card with the MR[…]
How can I transfer power from one ESP8266 to anoth[…]
Very good project. Have you made a PCB? If not, yo[…]
ESP8266 throws a wdt reset every time it attempts […]
Hi, I am new to using ESP8266, and wonder if someo[…]
Hello, I am trying te extract data from my weather[…]
ESP8266 hangs freezes stops responding when sent c[…]
Hi, is there a define like ARDUINO_ESP8266_VERSION[…]
Hi all, I recently bought a ESP8266 WIFI 4 Channe[…]
Tell the guy to configure the Loop function with d[…]
I have found two solutions, one hardware and one s[…]
Hi, I have been unable to get my board into the bo[…]