Open men9xuan opened 1 year ago
same
I was able to compile it using this change in platformio.ini
:
[env:esp32doit-devkit-v1] platform = espressif32@3.5.0
By adding the @3.5.0 I force PlatformIO to use an older version of the ESP32 libraries.
Thanks @frankzimper! That got the project to build but after it's pushed to the esp32 I'm unable to connect via the browser. Were you able to get it to work for you? Kindest regards.
hello, I have issue to run platform.io build. Can you take look what went wrong?
I installed 2.0.4-beta and 2.0.15-rc . None able to get over this issue. Should I install the WiFiManager library using Arduino IDE?
logs: ` * Executing task: C:\Users\mengx.platformio\penv\Scripts\platformio.exe run --target upload --upload-port COM3
Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (6.4.0) > DOIT ESP32 DEVKIT V1 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
tool-esptoolpy @ 1.40501.0 (4.5.1)
tool-mkfatfs @ 2.0.1
tool-mklittlefs @ 1.203.210628 (2.3)
tool-mkspiffs @ 2.230.0 (2.30)
toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 37 compatible libraries Scanning dependencies... Dependency Graph |-- SPIFFS @ 2.0.0 |-- FS @ 2.0.0 |-- AsyncTCP @ 1.1.1 |-- ESP Async WebServer @ 1.2.3 |-- ESPmDNS @ 2.0.0 |-- WiFi @ 2.0.0 |-- WiFiManager @ 2.0.4-beta |-- SPI @ 2.0.0 Building in release mode Compiling .pio\build\esp32doit-devkit-v1\src\cc_interface.cpp.o Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o Compiling .pio\build\esp32doit-devkit-v1\src\utils.cpp.o Compiling .pio\build\esp32doit-devkit-v1\src\web.cpp.o Building .pio\build\esp32doit-devkit-v1\bootloader.bin Generating partitions .pio\build\esp32doit-devkit-v1\partitions.bin esptool.py v4.5.1 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Compiling .pio\build\esp32doit-devkit-v1\lib68a\FS\FS.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib68a\FS\vfs_api.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib091\SPIFFS\SPIFFS.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib82d\AsyncTCP\AsyncTCP.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFi.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiAP.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiClient.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiGeneric.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib82d\libAsyncTCP.a Archiving .pio\build\esp32doit-devkit-v1\lib68a\libFS.a Archiving .pio\build\esp32doit-devkit-v1\lib091\libSPIFFS.a Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiMulti.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiSTA.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiScan.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiServer.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib6c7\WiFi\WiFiUdp.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\AsyncEventSource.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\AsyncWebSocket.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\SPIFFSEditor.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\WebAuthentication.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\WebHandlers.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\WebRequest.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\WebResponses.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib6c7\libWiFi.a Compiling .pio\build\esp32doit-devkit-v1\lib63d\ESP Async WebServer\WebServer.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib604\ESPmDNS\ESPmDNS.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib004\DNSServer\DNSServer.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib073\Update\HttpsOTAUpdate.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib073\Update\Updater.cpp.o Compiling .pio\build\esp32doit-devkit-v1\lib336\WebServer\Parsing.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib604\libESPmDNS.a Compiling .pio\build\esp32doit-devkit-v1\lib336\WebServer\WebServer.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib004\libDNSServer.a Compiling .pio\build\esp32doit-devkit-v1\lib336\WebServer\detail\mimetable.cpp.o Compiling .pio\build\esp32doit-devkit-v1\libf04\WiFiManager-feature_asyncwebserver\WiFiManager.cpp.o Compiling .pio\build\esp32doit-devkit-v1\libc5c\SPI\SPI.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Esp.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\FirmwareMSC.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib073\libUpdate.a Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\FunctionalInterrupt.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\HWCDC.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\HardwareSerial.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPAddress.cpp.o Archiving .pio\build\esp32doit-devkit-v1\lib336\libWebServer.a Archiving .pio\build\esp32doit-devkit-v1\libc5c\libSPI.a Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPv6Address.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\MD5Builder.cpp.o lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp: In member function 'void WiFiManager::WiFiEvent(arduino_event_id_t, system_event_info_t)': lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp:3452:17: warning: comparison between 'enum arduino_event_id_t' and 'enum system_event_id_t' [-Wenum-compare] if(event == SYSTEM_EVENT_STA_DISCONNECTED){ ^
~~~~~~~~ lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp:3469:20: warning: comparison between 'enum arduino_event_id_t' and 'enum system_event_id_t' [-Wenum-compare] else if(event == SYSTEM_EVENT_SCAN_DONE){ ^~~~~~ lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp: In member function 'void WiFiManager::WiFi_autoReconnect()': lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp:3486:79: error: no matching function for call to 'WiFiClass::onEvent(std::_Bind_helper<false, void (WiFiManager::)(arduino_event_id_t, system_event_info_t), WiFiManager, const std::_Placeholder<1>&, const std::_Placeholder<2>&>::type)' wm_event_id = WiFi.onEvent(std::bind(&WiFiManager::WiFiEvent,this,_1,_2)); // @todo move, needed for async esp32 scannetworks ^ In file included from C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:28,from C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:32,
from lib/WiFiManager-feature_asyncwebserver/WiFiManager.h:70, from lib/WiFiManager-feature_asyncwebserver/WiFiManager.cpp:13: C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:159:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventCb, arduino_event_id_t)' wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); ^
~~ C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:159:21: note: no known conversion for argument 1 from 'std::_Bind_helper<false, void (WiFiManager::)(arduino_event_id_t, system_event_info_t), WiFiManager, const std::_Placeholder<1>&, const std::_Placeholder<2>&>::type' {aka 'std::_Bind<void (WiFiManager::(WiFiManager, std::_Placeholder<1>, std::_Placeholder<2>))(arduino_event_id_t, system_event_info_t)>'} to 'WiFiEventCb' {aka 'void ()(arduino_event_id_t)'} C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:160:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventFuncCb, arduino_event_id_t)' wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); ^~~ C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:160:21: note: no known conversion for argument 1 from 'std::_Bind_helper<false, void (WiFiManager::)(arduino_event_id_t, system_event_info_t), WiFiManager, const std::_Placeholder<1>&, const std::_Placeholder<2>&>::type' {aka 'std::_Bind<void (WiFiManager::(WiFiManager, std::_Placeholder<1>, std::_Placeholder<2>))(arduino_event_id_t, system_event_info_t)>'} to 'WiFiEventFuncCb' {aka 'std::function<void(arduino_event_id_t, arduino_event_info_t)>'} C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:161:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventSysCb, arduino_event_id_t)' wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); ^~~ C:/Users/mengx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:161:21: note: no known conversion for argument 1 from 'std::_Bind_helper<false, void (WiFiManager::)(arduino_event_id_t, system_event_info_t), WiFiManager, const std::_Placeholder<1>&, const std::_Placeholder<2>&>::type' {aka 'std::_Bind<void (WiFiManager::(WiFiManager, std::_Placeholder<1>, std::_Placeholder<2>))(arduino_event_id_t, system_event_info_t)>'} to 'WiFiEventSysCb' {aka 'void ()(arduino_event_t*)'} Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Print.cpp.o Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Stream.cpp.o *** [.pio\build\esp32doit-devkit-v1\libf04\WiFiManager-feature_asyncwebserver\WiFiManager.cpp.o] Error 1 =============================================== [FAILED] Took 44.27 seconds ===============================================The terminal process "C:\Users\mengx.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--upload-port', 'COM3'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it. `