Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
Compilation failed when including the module, compiler does not complain about the way I use the library, it complains about the library itself.
Arduino IDE 2.3.8
AsyncTCP v1.1.4
ESPAsyncWebServer 3.11.0 (from github, IDE offers lower version from different source)
Stack Trace
*\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h: In member function 'tcp_state AsyncWebServer::state() const':
*\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:1689:49: error: passing 'const AsyncServer' as 'this' argument discards qualifiers [-fpermissive]
1689 | return static_cast<tcp_state>(_server.status());
| ~~~~~~~~~~~~~~^~
In file included from *\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:43:
*\Arduino\libraries\AsyncTCP\src/AsyncTCP.h:198:13: note: in call to 'uint8_t AsyncServer::status()'
198 | uint8_t status();
| ^~~~~~
exit status 1
Compilation error: exit status 1
Minimal Reproductible Example (MRE)
C #include` <ESPAsyncWebServer.h>
I confirm that:
Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
Compilation failed when including the module, compiler does not complain about the way I use the library, it complains about the library itself.
Arduino IDE 2.3.8
AsyncTCP v1.1.4
ESPAsyncWebServer 3.11.0 (from github, IDE offers lower version from different source)
Stack Trace
*\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h: In member function 'tcp_state AsyncWebServer::state() const':
*\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:1689:49: error: passing 'const AsyncServer' as 'this' argument discards qualifiers [-fpermissive]
1689 | return static_cast<tcp_state>(_server.status());
| ~~~~~~~~~~~~~~^~
In file included from *\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:43:
*\Arduino\libraries\AsyncTCP\src/AsyncTCP.h:198:13: note: in call to 'uint8_t AsyncServer::status()'
198 | uint8_t status();
| ^~~~~~
exit status 1
Compilation error: exit status 1
Minimal Reproductible Example (MRE)
C #include` <ESPAsyncWebServer.h>I confirm that: