fbiego / ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards
MIT License
212 stars 36 forks source link

creates web server and allows synching time with phone before sleeping #43

Closed FBMinis closed 2 months ago

FBMinis commented 2 months ago

For people who want to build a logger or schedule events without using a extra real time clock module like the DS3231, I propose using this sketch as a basis. When you power ON the ESP32, a simple web server is created that allows synching our phone's time with 'rtc.setTime(epochTime)'. This is an alternative to setting the time on your example sketch.

In the future the web server can be called again by triggering and interrupt with a button, for example.

fbiego commented 2 months ago

But you need to put your name in the license

FBMinis commented 2 months ago

But you need to put your name in the license

Corrected, thank you.