s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
889 stars 166 forks source link

Examples not compilate for ESP32 on ArduinoIDE 2.3 #304

Open MarksRU opened 2 months ago

MarksRU commented 2 months ago

Describe the bug When compiling any example from the library for any ESP32 module, I get an error. The compilation for ESP8266 is successful, the example is loaded into the module and works.

При попытке скомпилировать любой пример из библиотеки в среде ArduinoIDE 2.3 для модуля ESP32 получаю ошибку. Компиляция для ESP8266 проходит успешно, пример загружается в модуль и работает.

c:\Users\myrch\Documents\Arduino 2.3\libraries\ESPUI\src\ESPUI.cpp: In function 'String heapInfo(const __FlashStringHelper*)': c:\Users\myrch\Documents\Arduino 2.3\libraries\ESPUI\src\ESPUI.cpp:58:5: error: 'result' was not declared in this scope 58 | result += ESP.getFreeHeap(); | ^~ exit status 1 Compilation error: exit status 1

To Reproduce Steps to reproduce the behavior:

  1. Open any Example
  2. Click on 'Compilate'
  3. See error
MartinMueller2003 commented 2 months ago

I just built all of the examples for Arduino IDE 2.3 and did not have any errors.

MartinMueller2003 commented 1 month ago

I just cleared my Arduino libraries and compiled again and all the Arduino builds failed on the ESPAsyncWebServer lib. It looks like Arduino Library manager is NOT bringing in the me-no-dev libraries. The PIO example works because it brings in the correct version of the library.

MarksRU commented 1 month ago

I just cleared my Arduino libraries and compiled again and all the Arduino builds failed on the ESPAsyncWebServer lib. It looks like Arduino Library manager is NOT bringing in the me-no-dev libraries. The PIO example works because it brings in the correct version of the library.

Thank you so much. The lacamera/ESPAsyncWebServer library (https://github.com/lacamera/ESPAsyncWebServer) is installed in the Arduino ide. This is a bad fork. I downloaded me-no-dev/ESPAsyncWebServer from GitHub (https://github.com/me-no-dev/ESPAsyncWebServer?ysclid=lyosybspmo759236207), installed it in Arduino IDE 2.3 and everything works correctly.


Спасибо огромное. В Arduino ide устанавливается библиотека lacamera/ESPAsyncWebServer. Это плохой fork. Я скачал с GitHub me-no-dev/ESPAsyncWebServer, установил ее в Arduino IDE 2.3 и все работает правильно.