From 2772e4d25642ce982170011993b3437594f651f1 Mon Sep 17 00:00:00 2001 From: moononournation Date: Fri, 22 Jan 2021 17:47:08 +0800 Subject: [PATCH] refresh http.begin function parameters --- examples/ESPPhotoFrame/ESPPhotoFrame.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ESPPhotoFrame/ESPPhotoFrame.ino b/examples/ESPPhotoFrame/ESPPhotoFrame.ino index 3efcb334..b63d5f2b 100644 --- a/examples/ESPPhotoFrame/ESPPhotoFrame.ino +++ b/examples/ESPPhotoFrame/ESPPhotoFrame.ino @@ -228,6 +228,7 @@ static JpegDec jpegDec; static uint32_t len, offset; static unsigned long next_show_millis = 0; +WiFiClient client; HTTPClient http; char url[1024]; @@ -275,7 +276,7 @@ void loop() { next_show_millis = ((millis() / 60000L) + 1) * 60000L; // next minute Serial.print("[HTTP] begin...\n"); - http.begin(url); + http.begin(client, url); http.setTimeout(HTTP_TIMEOUT); Serial.print("[HTTP] GET...\n"); int httpCode = http.GET();