Hi
I'm trying to understand the snmp example but I'm stuck... can you clarify my dubts?
I used lwIP in the past and I usually was required to define in my code the macro:
SNTP_SET_SYSTEM_TIME (or its equivalent for microsecond precision)
with the specific code for my chip (update rtc registers...)... and I expected the same here in the esp-idf framework... I cannot find the lines of code that configure the esp32 RTC and so on...
Thanks!
SNTP example...
Re: SNTP example...
In ESP-IDF version of LwIP, SNTP_SET_SYSTEM_TIME is defined to use settimeofday function. This function, in turn, implements timekeeping using the RTC timer. You can also call settimeofday function manually to set time from some other source.
-
- Posts: 64
- Joined: Tue Jan 10, 2017 1:09 pm
Re: SNTP example...
Thanks! can you point me to the file where it is defined? I probably missed it in my search
Who is online
Users browsing this forum: Google [Bot] and 67 guests