gmag11 / ESPNtpClient

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

ESP32-C3 #44

Closed gotfredsen closed 2 years ago

gotfredsen commented 2 years ago

When using in a ESP-C3 project I get this error:

lib/ESPNtpClient/src/ESPNtpClient.h:29:10: fatal error: include/time.h: No such file or directory

It works fine on standard ESP32...

I have tried #include "time.h" instead in ESPNtpClient.h, but it didn't help. Can you suggest a work around?

UPDATE:

It turn out that include/time.h only exists in platform = espressif32@3.5.0, which is too early to support ESP32-C3

gotfredsen commented 2 years ago

Solved:

I used a project that used an earlier version of this library. Once updated, everything worked fine.