Skip to content

Commit

Permalink
refresh http.begin function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Jan 22, 2021
1 parent 10e6356 commit 2772e4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/ESPPhotoFrame/ESPPhotoFrame.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2772e4d

Please sign in to comment.