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:
parent
13589b1ce9
commit
33a4c6a5a7
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user