1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Update StreamHttpClient.ino (#6030)

Fix WiFiClient vs. HttpClient declaration order
Fixes #6028
This commit is contained in:
Develo 2019-04-30 21:15:58 -04:00 committed by Earle F. Philhower, III
parent 13589b1ce9
commit 33a4c6a5a7

View File

@ -38,9 +38,8 @@ void loop() {
// wait for WiFi connection
if ((WiFiMulti.run() == WL_CONNECTED)) {
HTTPClient http;
WiFiClient client;
HTTPClient http; //must be declared after WiFiClient for correct destruction order, because used by http.begin(client,...)
Serial.print("[HTTP] begin...\n");