Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

does not compile with ESP32C3 #1420

Open
philippedc opened this issue Jul 7, 2024 · 1 comment
Open

does not compile with ESP32C3 #1420

philippedc opened this issue Jul 7, 2024 · 1 comment

Comments

@philippedc
Copy link

Hi, IDE version 1.8.16 with Expressif Sytems (ESP32) version 2.0.14
no problem with ESP32 dev module, but with ESP32C3 I get this error message during compilation:

C:\Users\yakac\Documents\Arduino\libraries\ESPAsyncWebServer-master\src\AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP()':
C:\Users\yakac\Documents\Arduino\libraries\ESPAsyncWebServer-master\src\AsyncWebSocket.cpp:832:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous
return IPAddress(0U);
^
In file included from C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:180,
from C:\Users\yakac\Documents\Arduino\libraries\ESPAsyncWebServer-master\src\AsyncWebSocket.cpp:21:
C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/IPAddress.h:51:5: note: candidate: 'IPAddress::IPAddress(const uint8_t*)'
IPAddress(const uint8_t *address);
^~~~~~~~~
C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/IPAddress.h:50:5: note: candidate: 'IPAddress::IPAddress(uint32_t)'
IPAddress(uint32_t address);
^~~~~~~~~
C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/IPAddress.h:29:7: note: candidate: 'constexpr IPAddress::IPAddress(const IPAddress&)'
class IPAddress: public Printable
^~~~~~~~~
Plusieurs bibliothèque trouvées pour "SD.h"
Utilisé : C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\SD
Non utilisé : C:\Program Files (x86)\Arduino\libraries\SD
Plusieurs bibliothèque trouvées pour "WiFi.h"
Utilisé : C:\Users\yakac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\WiFi
Non utilisé : C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Erreur de compilation pour la carte ESP32C3 Dev Module

@Mark-Wills
Copy link

Could try changing the return statement to:

return 0UL;

It should then pick the override with the uint32 address type.

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

No branches or pull requests

2 participants