1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

correct StreamHttpClient.ino example

This commit is contained in:
Markus Sattler 2015-11-25 12:42:24 +01:00
parent 59b4c82d60
commit 761b73c5ad

View File

@ -63,7 +63,7 @@ void loop() {
uint8_t buff[128] = { 0 }; uint8_t buff[128] = { 0 };
// get tcp stream // get tcp stream
WiFiClient * stream = http.getStream(); WiFiClient * stream = http.getStreamPtr();
// read all data from server // read all data from server
while(http.connected() && (len > 0 || len == -1)) { while(http.connected() && (len > 0 || len == -1)) {