Search found 1 match

by angelxtrme
Thu Dec 14, 2023 3:02 am
Forum: ESP32 Arduino
Topic: http.getString(); Fails with a very large JSON string. Can we get this working?
Replies: 2
Views: 35828

Re: http.getString(); Fails with a very large JSON string. Can we get this working?

// String payload = http.getString();
WiFiClient * stream = http.getStreamPtr();
String payload = "";
while (stream->available()) {
char c = stream->read();
payload += c;
}