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
I have read the documentation at readthedocs and the issue is not addressed there.
I have tested that the issue is present in current master branch (aka latest git).
I have searched the issue tracker for a similar issue.
If there is a stack dump, I have decoded it.
I have filled out all fields below.
Platform
Hardware: ESP-12
Core Version: master
Development Env: Platformio
Operating System: Ubuntu
Problem Description
Defining NO_GLOBAL_INSTANCES breaks ESP8266HttpClient because it depends on devnull being defined. But it seems that if it's needed, it shouldn't be disable by that option. And since it's one byte it seems acceptable.
/src/ESP8266HTTPClient.cpp:850:32: error: 'devnull' was not declared in this scope
850 | _client->sendAvailable(devnull); // clear _client's output (all of it, no timeout)
| ^~~~~~~
*** [.pio/build/release/libc18/ESP8266HTTPClient/ESP8266HTTPClient.cpp.o] Error 1
The text was updated successfully, but these errors were encountered:
Serial is always declared as external in the header, but not defined when NO_GLOBAL_INSTANCES is defined. But other globals aren't even declared in the headers if NO_GLOBAL_INSTANCES is defined.
@paulocsanz Both Serial and Serial1, to be precise. Now while you are at it, there shouldn't be a problem enclosing that in #ifdef, given that your results indicate it passes the linker phase just fine. From my POV, go ahead and add the #ifdef to your PR.
Basic Infos
Platform
Problem Description
Defining
NO_GLOBAL_INSTANCES
breaksESP8266HttpClient
because it depends ondevnull
being defined. But it seems that if it's needed, it shouldn't be disable by that option. And since it's one byte it seems acceptable.The text was updated successfully, but these errors were encountered: