Closed salasidis closed 2 years ago
Hi @salasidis
If I compile the example, it works OK
If you can compile the library's examples without any issue, the problem is in your code.
To fix it, you have to identify which Stream class
must use arduino::
prefix, and which one to use mbed::
prefix.
Try not blindly use
using namespace mbed;
or
using namespace arduino;
This is simple scope-relating
problem to solve, and you must know and be sure which data type, from which part you'd like to use before putting into your code.
Certainly no one can help you here without your full code. Even with your full code, I'm afraid no one will be interested in helping you solving the issue not-related to this library.
Your post AsyncWebServer library on Arduino Forum is a good place to start for general programming issue.
Good Luck,
For the record, the issue was solve by the OP, posted as AsyncWebServer library
I removed all reference to using namespace from my code, and added mbed::, rtos:: as required for the used function in my code, and then it compiled.
I also had to add definitions for
void handleRoot(AsyncWebServerRequest *request); void handleNotFound(AsyncWebServerRequest *request); void drawGraph(AsyncWebServerRequest *request);
to make sure the WebServer sample code compiled - should not have been necessary, as the function code was present before it was ever called, but the errors went away when I declared them as above in my header.
I posted this in the arduino forum, but not sure if it should go here as well
If I compile the example, it works OK
However, if I try to use the async library in my application, the moment I issue a
include
I get the following errors
Mostly there seems to be am issue with the Stream class
I have tried adding
or
before the #include but that did not work.
Any ideas how to resolve this? I am using some mbed specific features, such as threads and the chrono library.
Thanks