This library provides macros for easy router definition and, if enabled, an embedded compatible synchronous HttpServer, that uses the axum router for route management.
By default this library only provides two macros for more convenient router creation.
esp
-> This feature enables the embedded compatible HttpServer.Because this HttpServer uses async functions and the spawn function from tokio, you may get this error:
text
***ERROR*** A stack overflow in task pthread has been detected.
Fortunately, all you have to do is adjust the following value in your sdkconfig.defaults
which should have been generated when you used
this ESP32 template:
```text
CONFIGPTHREADTASKSTACKSIZE_DEFAULT=10000 ```
When using this library and other libraries, you may encounter another problem: you run out of memory. To fix this, you need to change some compiler settings. For that, I
would suggest to have a look at this
and this guide
.