Rückgabe von http.getString()

Dann musst Du sie halt noch vom client lesen, bevor Du ihn beendest.

Gruß Tommy

So also die Vermutung stimmt. Warum auch immer funktioniert getString nicht.
Mittels Serial.print(char(client.read())) lässt sich dann doch alles per hand auslesen, aber mir ist nicht klar warum es nur auf die harte tour geht.

Danke aber für die Lösungsansätze.

Grüße

Steve

Hallo, ist das vielleicht das gleiche Thema wie auf GITHUB (Suche mal nach Flensb und getstring):

I experienced the same behaviour: crash on getString(). For me it worked correctly after rewriting

HTTPClient http;
http.begin( url );

to

WiFiClient client;
HTTPClient http;
http.begin( client, url );

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.