Post by rayd5146 on Sept 19, 2019 6:53:14 GMT -8
HI,
I have the BC24 Weather RGBW. I have this connected to my WiFi.
I have trying to compile the SDL__ESP32_BC24_WEATHER program using Arduino IDE but get an error message relating to
# include <TimeLib.h>
SEEBELOW
____---
SDL_ESP32_BC24_WEATHER:87:22: error: TimeLib.h: No such file or directory
compilation terminated.
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFiClientSecure
Multiple libraries were found for "HTTPClient.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\HTTPClient
Multiple libraries were found for "WiFi.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
Not used: C:\Program
exit status 1
TimeLib.h: No such file or directory
-------------------
TimeLib.h is present in the root Weather directory
I note there is a
#include "TimeLib.h"earlier in the program.
I f I exclude <TimeLib> from the program I get additional error messages relating to minutes, seconds etc. See below
----
EXTRACT FROM ERROR MESSAGES WITH <Timelib.h> excluded
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `digitalClockDisplay()':
sketch/WXLink.h:32: undefined reference to `hour()'
sketch/WXLink.h:32: undefined reference to `minute()'
sketch/WXLink.h:32: undefined reference to `second()'
sketch/WXLink.h:32: undefined reference to `weekday()'
sketch/WXLink.h:32: undefined reference to `dayStr(unsigned char)'
sketch/WXLink.h:32: undefined reference to `day()'
sketch/WXLink.h:32: undefined reference to `month()'
sketch/WXLink.h:32: undefined reference to `monthStr(unsigned char)'
sketch/WXLink.h:32: undefined reference to `year()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `setClockTimeOffsetToUTC(String)':
sketch/WXLink.h:32: undefined reference to `setTime(long)'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `taskClock(void*)':
sketch/WXLink.h:32: undefined reference to `breakTime(long, tmElements_t&)'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `updateDisplay(int)':
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `setup()':
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `setTime(long)'
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `loop()':
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o:sketch/WXLink.h:32: more undefined references to `now()' follow
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Wire.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\Wire
Multiple libraries were found for "FS.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\FS
Multiple libraries were found for "WiFi.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
Not used: C:\Program
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFiClientSecure
Multiple libraries were found for "HTTPClient.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\HTTPClient
Multiple libraries were found for "Preferences.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\Preferences
Multiple libraries were found for "DNSServer.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\DNSServer
exit status 1
Error compiling for board Adafruit ESP32 Feather.
-------
I have followed the set up instructions for the Arduino (although I am a novice with the IDE) and am using the Adafruit ESP feather ( see above)
I would be grateful for any advice.
Thanks
Ray Drury
I have the BC24 Weather RGBW. I have this connected to my WiFi.
I have trying to compile the SDL__ESP32_BC24_WEATHER program using Arduino IDE but get an error message relating to
# include <TimeLib.h>
SEEBELOW
____---
SDL_ESP32_BC24_WEATHER:87:22: error: TimeLib.h: No such file or directory
compilation terminated.
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFiClientSecure
Multiple libraries were found for "HTTPClient.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\HTTPClient
Multiple libraries were found for "WiFi.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
Not used: C:\Program
exit status 1
TimeLib.h: No such file or directory
-------------------
TimeLib.h is present in the root Weather directory
I note there is a
#include "TimeLib.h"earlier in the program.
I f I exclude <TimeLib> from the program I get additional error messages relating to minutes, seconds etc. See below
----
EXTRACT FROM ERROR MESSAGES WITH <Timelib.h> excluded
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `digitalClockDisplay()':
sketch/WXLink.h:32: undefined reference to `hour()'
sketch/WXLink.h:32: undefined reference to `minute()'
sketch/WXLink.h:32: undefined reference to `second()'
sketch/WXLink.h:32: undefined reference to `weekday()'
sketch/WXLink.h:32: undefined reference to `dayStr(unsigned char)'
sketch/WXLink.h:32: undefined reference to `day()'
sketch/WXLink.h:32: undefined reference to `month()'
sketch/WXLink.h:32: undefined reference to `monthStr(unsigned char)'
sketch/WXLink.h:32: undefined reference to `year()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `setClockTimeOffsetToUTC(String)':
sketch/WXLink.h:32: undefined reference to `setTime(long)'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `taskClock(void*)':
sketch/WXLink.h:32: undefined reference to `breakTime(long, tmElements_t&)'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `updateDisplay(int)':
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `setup()':
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `setTime(long)'
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o: In function `loop()':
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch/WXLink.h:32: undefined reference to `now()'
sketch\SDL_ESP32_BC24_WEATHER.ino.cpp.o:sketch/WXLink.h:32: more undefined references to `now()' follow
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Wire.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\Wire
Multiple libraries were found for "FS.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\FS
Multiple libraries were found for "WiFi.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
Not used: C:\Program
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFiClientSecure
Multiple libraries were found for "HTTPClient.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\HTTPClient
Multiple libraries were found for "Preferences.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\Preferences
Multiple libraries were found for "DNSServer.h"
Used: C:\Users\raymo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\DNSServer
exit status 1
Error compiling for board Adafruit ESP32 Feather.
-------
I have followed the set up instructions for the Arduino (although I am a novice with the IDE) and am using the Adafruit ESP feather ( see above)
I would be grateful for any advice.
Thanks
Ray Drury