mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-26 07:02:15 +03:00
Update DigestAuthorization.ino (#6029)
Fix WiFiClient vs. HttpClient declaration order
This commit is contained in:
@ -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");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user