gmag11 / ESPNtpClient

High accuracy NTP library for ESP32 and ESP8266
MIT License
118 stars 25 forks source link

Error compiling for board WEMOS D1 MINI ESP32 #45

Closed RobInSaratoga closed 1 year ago

RobInSaratoga commented 1 year ago

Board: Wemos D1 MINI ESP32. Board package "Espressif Systems" version 2.0.6 (the latest as of this writing)

****Arduino/libraries/ESPNtpClient-main/src/ESPNtpClient.h:29:10: fatal error: include/time.h: No such file or directory
 #include "include/time.h"
                ^~~~~~~~~~~~~~~~
compilation terminated.
Using library ESPNtpClient-main at version 0.2.6 in folder: /home/rob/Arduino/libraries/ESPNtpClient-main
RobInSaratoga commented 1 year ago

I was able to remedy this problem.

It turns out that the most recent version of this library was revised, but the version number was not updated. This happened on May 23rd of 2022. If you are getting this error, download a fresh copy of the library, delete the existing copy on your drive and install the fresh copy. I can now compile without a problem.