Skip to content

ESP32 stops on http.getString(); #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
EcceRobot opened this issue Nov 22, 2019 · 1 comment
Closed

ESP32 stops on http.getString(); #22

EcceRobot opened this issue Nov 22, 2019 · 1 comment

Comments

@EcceRobot
Copy link

Hello,

I had a problem with ESP32.
The application stops when it tries to print a response that is empty (204).
If it's not empty there is no problem.

I solved with this workaround:
// String response = http.getString();
// Serial.println(" \"" + response + "\"");

Maybe a problem with "HTTPClient.h" name?
#if defined(ESP8266)
#include <ESP8266HTTPClient.h>
#elif defined(ESP32)
#include <WiFi.h>
#include <HTTPClient.h>
#endif

Thanks,
E_R

@tobiasschuerg
Copy link
Owner

This should already be fixed by #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants