Skip to content

Commit 8ac155a

Browse files
committed
start with a fresh client
1 parent 0ec1d4f commit 8ac155a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ int status = WL_IDLE_STATUS;
3535
#define SERVER "cdn.syndication.twimg.com"
3636
#define PATH "/widgets/followbutton/info.json?screen_names=adafruit"
3737

38-
// Initialize the SSL client library
39-
// with the IP address and port of the server
40-
// that you want to connect to (port 443 is default for HTTPS):
41-
WiFiClientSecure client;
4238

4339
void setup() {
4440
//Initialize serial and wait for port to open:
@@ -91,6 +87,8 @@ void setup() {
9187
uint32_t bytes = 0;
9288

9389
void loop() {
90+
WiFiClientSecure client;
91+
9492
Serial.println("\nStarting connection to server...");
9593
#if defined(USE_OLED)
9694
display.clearDisplay(); display.setCursor(0,0);

0 commit comments

Comments
 (0)