mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Update DigestAuthorization.ino (#6029)
Fix WiFiClient vs. HttpClient declaration order
This commit is contained in:
parent
33a4c6a5a7
commit
0da6906499
@ -98,9 +98,8 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
HTTPClient http;
|
|
||||||
|
|
||||||
WiFiClient client;
|
WiFiClient client;
|
||||||
|
HTTPClient http; //must be declared after WiFiClient for correct destruction order, because used by http.begin(client,...)
|
||||||
|
|
||||||
Serial.print("[HTTP] begin...\n");
|
Serial.print("[HTTP] begin...\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user