This question relates to the use of TimeLib.h
Basically, I want to sync my time with the NTP server and set it as the default system time and then break whatever value is into variables that I can use in loops. I tried doing this with a few methods.
struct tm timeinfo;
Serial.println("Failed to obtain time");
int tday = (*timeinfo, "%d") did not work.
int tday = timeinfo.tm_mday did not work
int tday = day() did not work
I tried using the default esp8266 example that comes with the library but that doesn't work with my esp32.