I have a question about compiling ESPEasy in Arduino IDE.
IDE v.1.8.16
ESP32 sdk 1.0.6
ESPEasy Build is ESPEasy_ESP32_mega-20210802
When trying to compile, i get a lot of errors:
Code: Select all
sketch\src\Commands_tmp\objs.a(__tmpfile.cpp.o): In function `Command_Wifi_Connect(EventStruct*, char const*)':
c:\users\dmitriy\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits/stl_map.h:502: multiple definition of `Command_Wifi_Connect(EventStruct*, char const*)'
sketch\src\Commands\objs.a(WiFi.cpp.o):D:\_ESPEASY_\ESP32\ESPEasy\src\Commands/WiFi.cpp:63: first defined here
sketch\src\Commands_tmp\objs.a(__tmpfile.cpp.o): In function `Command_RTC_resetFlashWriteCounter(EventStruct*, char const*)':
__tmpfile.cpp:(.text._Z34Command_RTC_resetFlashWriteCounterP11EventStructPKc+0x0): multiple definition of `Command_RTC_resetFlashWriteCounter(EventStruct*, char const*)'
sketch\src\Commands\objs.a(RTC.cpp.o):D:\_ESPEASY_\ESP32\ESPEasy\src\Commands/RTC.cpp:22: first defined here
sketch\src\Commands_tmp\objs.a(__tmpfile.cpp.o): In function `Command_System_NoSleep(EventStruct*, char const*)':
__tmpfile.cpp:(.text._Z22Command_System_NoSleepP11EventStructPKc+0x0): multiple definition of `Command_System_NoSleep(EventStruct*, char const*)'
sketch\src\Commands\objs.a(System.cpp.o):D:\_ESPEASY_\ESP32\ESPEasy\src\Commands/System.cpp:15: first defined here
sketch\src\Commands_tmp\objs.a(__tmpfile.cpp.o): In function `Command_Wifi_AllowAP(EventStruct*, char const*)':
By the way. Compiling for ESP8266 is without errors with same libraries.
One more thing. Flashing the:
ESP_Easy_mega_20210802_normal_ESP32_4M316k-factory.bin
Is OK. ESPEasy works fine.
But i need to add some functions in Arduino IDE.
Actually i need:
1. Get temperature from DS18B20
2. Send that information through the UART of HC-12 module. I have remote display that show that temperature away from ESP32.
3. Send infromation about temperature on remote server with GET request.
I know how to do that by using ESP32 in Arduino IDE withiud any additional firmware. Maybe ESPEasy can do that, i do not know...