esphome / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
80 stars 57 forks source link

fpermissive looping inside para,eters #39

Open StefanoTesla opened 3 weeks ago

StefanoTesla commented 3 weeks ago

I get this error: error: invalid conversion from 'const AsyncWebParameter*' to 'AsyncWebParameter*' [-fpermissive]

In this line: AsyncWebParameter* p = request->getParam(i);

What's the problem?? I never get it...just new pc installation...

Pablo2048 commented 3 weeks ago

It's probably because of this https://github.com/mathieucarbou/ESPAsyncWebServer/releases/tag/v3.0.1 - just add const before AsyncWebParameter* p....

StefanoTesla commented 2 weeks ago

ok but now:

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.3.2) > 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-h, olimex-jtag-tiny, tumpa) PACKAGES:

Any advice? the repo is this one: https://github.com/StefanoTesla/Ascom-Alpacha-ESP32-Switch-Borad-Dome-Board

StefanoTesla commented 2 weeks ago

I remove this library from platformio and it work....why? It come with esp32 base lib now?

lib_deps = 
    ;esphome/ESPAsyncWebServer-esphome //no more required
    alanswx/ESPAsyncWiFiManager
    ayushsharma82/ElegantOTA
    bblanchon/ArduinoJson
build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1
Pablo2048 commented 2 weeks ago

It's obvious - it's because of this line https://github.com/ayushsharma82/ElegantOTA/blob/adf776848827bf7ee61075e19dbbc486fdb87a75/library.json#L20

ElegantOTA specifies another ESPAsyncWebServer version (that is why i personally hate using dependencies in library.json).

StefanoTesla commented 2 weeks ago

Aaah... Strange, when i implemented that library i dont had problems.. But at the same time im not using versioning in my platformio.ino so it's like the hell 😅

Il Mer 10 Lug 2024, 17:35 Pavel Brychta @.***> ha scritto:

It's obvious - it's because of this line

https://github.com/ayushsharma82/ElegantOTA/blob/adf776848827bf7ee61075e19dbbc486fdb87a75/library.json#L20

ElegantOTA specifies another ESPAsyncWebServer version (that is why i personally hate using dependencies in library.json).

— Reply to this email directly, view it on GitHub https://github.com/esphome/ESPAsyncWebServer/issues/39#issuecomment-2220845768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWB3IGXI7Z4WEYGVNJ6Z4JDZLVIFDAVCNFSM6AAAAABKRPMQHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQHA2DKNZWHA . You are receiving this because you authored the thread.Message ID: @.***>