Issues after updating ElegantOTA and other libraries

Continuing the discussion from Issuesm after updating ElegantOTA version 3.1.4:

Did you ever figure this out? Im also stuck. I guess thats what I get for allowing my librarys to update.

Hi @gpena2087. Follow the instructions here:

https://docs.elegantota.pro/async-mode/#enabling-async-mode

After that, you should be able to compile your sketch without encountering the types of errors that were reported by @sergio83100.

Let us know if you have any questions or problems while following those instructions.

Thanks, I have done that but im getting errors about HTTP conflicts. All this happened after loading up the IDE and updating my librarys after not using it since Jan.

In file included from /Users/dabe/Documents/Arduino1/Fireplace_Master_V1_1APBased/Fireplace_Master_V1_1APBased.ino:8:
/Users/dabe/Documents/Arduino1/libraries/ESPAsyncWebServer/src/ESPAsyncWebServer.h:68:3: note: previous declaration 'WebRequestMethod HTTP_OPTIONS'
   HTTP_OPTIONS = 0b01000000,
   ^~~~~~~~~~~~
In file included from /Users/dabe/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/WebServer/src/HTTP_Method.h:4,
                 from /Users/dabe/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/WebServer/src/WebServer.h:30,
                 from /Users/gabe/Documents/Arduino1/libraries/WiFiManager/WiFiManager.h:94,
                 from /Users/dabe/Documents/Arduino1/Fireplace_Master_V1_1APBased/Fireplace_Master_V1_1APBased.ino:21:
/Users/dabe/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:128:6: error: 'HTTP_PATCH' conflicts with a previous declaration

Please post your full sketch.

I'll provide instructions you can follow to do that:

  1. Select Tools > Auto Format from the Arduino IDE menus.
    This is done to make the code easier for us to read.
  2. Select Edit > Copy for Forum (Markdown) from the Arduino IDE menus.
  3. In a forum reply here, click on the post composer field.
  4. Press the Ctrl+V keyboard shortcut.
    This will paste the sketch to the post composer.
  5. Move the cursor outside of the code block markup before you add any additional text to your reply.
  6. Repeat the above process if your sketch has multiple tabs.
  7. Click the "Reply" button to post your reply.

When your code requires a library that's not pre-installed in "Arduino Cloud Editor", please post a link to where you downloaded that library from.

Hello, I was able to find a working solution here.

Found yet another "solution":

include WiFiManager first. ESPAsyncWebServer is already prepared to not redefine the conflicting symbols if the standard webserver is already included.

the bind error remains though...
1 Like