You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I have read the documentation.
I have searched for similar discussions.
I have searched for similar issues.
I have looked at the examples.
I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).
Activity