sntp library
Posted: Fri Nov 08, 2024 4:24 pm
There are 2 versions of the sntp library in Arduino. I just re-installed the Arduino IDE (v 2.3.3) and the ESP libraries for Arduino.
I had the same problem using the previous version of the IDE.
The problem is the the sntp.h files have contradicing declarations for the function sntp_getoperatingmode(void). According to the ESP documentation I expect that esp_sntp_operatingmode_t sntp_getoperatingmode(void) in file "C:\Users\<username>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32\include\lwip\include\apps\esp_sntp.h"
is the correct version.
How can I fix this, i.e. make Arduino ignore the incorrect version located at "C:\Users\<username>\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32\include\lwip\include\apps\esp_sntp.h"?
Or should I just delete the entire path?
I had the same problem using the previous version of the IDE.
The problem is the the sntp.h files have contradicing declarations for the function sntp_getoperatingmode(void). According to the ESP documentation I expect that esp_sntp_operatingmode_t sntp_getoperatingmode(void) in file "C:\Users\<username>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32\include\lwip\include\apps\esp_sntp.h"
is the correct version.
How can I fix this, i.e. make Arduino ignore the incorrect version located at "C:\Users\<username>\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32\include\lwip\include\apps\esp_sntp.h"?
Or should I just delete the entire path?