ESP32-BLECollector icon indicating copy to clipboard operation
ESP32-BLECollector copied to clipboard

Compilation error due to Time Library

Open Robino opened this issue 3 years ago • 3 comments

Dear,

I have this error during the compilation process: src/ESP32-BLECollector.ino:50: src/DateTime.h: In function 'void dumpTime(const char*, tm*)': src/DateTime.h:173:9: error: invalid use of incomplete type 'struct tm' info->tm_year + 1900,

I install all libraries:

Robino avatar Apr 09 '21 21:04 Robino

hey thanks for your feedback,

Library versions look fine although the latest chimera-core release is 1.1.3 (next release is 1.1.6) and there is no such release as 1.1.4 so my guess is you're using some version from platformio or borrowing their sources, or you checked out the repo when it had this temporary version number. It's not an issue and probably unrelated anyway.

In order to reproducte this issue I'll need more info:

  • What ESP32 device is being flashed (odroid-go, m5stack, wrover-kit, etc)
  • What esp32-arduino SDK version (latest is 1.0.6)
  • What tools are used to compile the sketch (Arduino, VsCode, platformio, etc)
  • What OS are they running on
  • If using Arduino IDE, what is the selected choice in the boards menu

tobozo avatar Apr 13 '21 17:04 tobozo

Thanks a lot for your response. To resolve my issue I remove the file Time.h from the library TimeLib. It seems it was a conflict. Now it works perfectly ! :-)

Robino avatar Apr 23 '21 00:04 Robino

looks like this is now official

I can't check that until july, but this change may impact the RTC part of ESP32-BLECollector. Keeeping this issue open until this is confirmed.

tobozo avatar Jun 21 '21 13:06 tobozo