Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Example code fails compile. error: call of overloaded 'IPAddress(unsigned int)' is ambiguous #2

Closed
RudyFiero opened this issue Sep 28, 2021 · 3 comments
Labels
Support Library support

Comments

@RudyFiero
Copy link

Describe the bug

Example code does not compile it produced the following error.

C:\Users\Rudy\Documents\Arduino\libraries\ESPAsyncWebServer-master\src\AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP()':
C:\Users\Rudy\Documents\Arduino\libraries\ESPAsyncWebServer-master\src\AsyncWebSocket.cpp:832:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous
         return IPAddress(0U);
                            ^

Steps to Reproduce

Install library and dependencies. Open example. Click compile. (Arduino IDE 1.8.13)

Expected behavior

Complete compile and load into hardware.

Actual behavior

As stated above.

Debug and AT-command log (if applicable)

Would love to, but never gets that far.

Screenshots

If applicable, add screenshots to help explain your problem.

Information

Please ensure to specify the following:

  • Arduino IDE version (e.g. 1.8.13)

  • ESP32-C3

  • Contextual information (e.g. what you were trying to achieve)

  • Simplest possible steps to reproduce

  • Anything that might be relevant in your opinion, such as:

    • Operating system - Windows
    • Network configuration - Does not get that far.

Example

Arduino IDE version: 1.8.13
ESP32 Core Version 2.0.0

Arduino: 1.8.13 (Windows 10), Board: "ESP32C3 Dev Module, Disabled, UART0, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 256000, None"

@khoih-prog
Copy link
Owner

I think you have some issue with your installation of the core or libraries.

Did you follow the instructions in esp32-c3 ESPAsyncWebServer Library Patch to install esp32c3_ESPAsyncWebServer_Patch ?

Pls also update the core to v1.8.15/v1.8.16.

I just compiled for ESP32_C3 and OK

Selection_042

Be sure to use the settings according to the above picture (ESP32C3 DEV Module, 2M or 4M depending on the C3 board, 160MHz, QIO, 80MHz, upload speed 460800)

@khoih-prog khoih-prog added the Support Library support label Sep 28, 2021
@RudyFiero
Copy link
Author

I'll give you suggestions a try. I'm not sure how soon I can do it though. Too much to do and not enough time.

@khoih-prog
Copy link
Owner

For the record, this is actually a bug in ESPAsyncWebServer library, I already reported and made a PR as Fix compiler error for ESP32-C3 and mbed TLS v2.7.0+ #970 from April 2021.

I'm sorry I forgot about it. This forked ESPAsyncWebServer library can be used until the bug would be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants