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:
parent
59b4c82d60
commit
761b73c5ad
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user