Skip to content

Commit 690f3a0

Browse files
committed
esp32 tests
1 parent 768256c commit 690f3a0

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ last revision November 2015
1616
1717
*/
1818

19+
#include <WiFi.h>
1920
#include <WiFiClientSecure.h>
2021
#include <ArduinoJson.h>
2122
#include <Wire.h>
@@ -44,16 +45,9 @@ char ssid[] = "YOUR_SSID"; // your network SSID (name)
4445
char pass[] = "YOUR_SSID_PASSWORD"; // your network password (use for WPA, or use as key for WEP)
4546
int keyIndex = 0; // your network key Index number (needed only for WEP)
4647

47-
48-
int status = WL_IDLE_STATUS;
49-
// if you don't want to use DNS (and reduce your sketch size)
50-
// use the numeric IP instead of the name for the server:
51-
//IPAddress server(74,125,232,128); // numeric IP for Google (no DNS)
52-
5348
#define SERVER "cdn.syndication.twimg.com"
5449
#define PATH "/widgets/followbutton/info.json?screen_names=adafruit"
5550

56-
5751
void setup() {
5852
//Initialize serial and wait for port to open:
5953
Serial.begin(115200);
@@ -90,7 +84,6 @@ void setup() {
9084
display.display();
9185
#endif
9286

93-
9487
while (WiFi.status() != WL_CONNECTED) {
9588
delay(500);
9689
Serial.print(".");

ESP32_S2_WiFi_Tests/WiFiSSLClient/WiFiSSLClient.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ last revision November 2015
1616
*/
1717

1818
#include <WiFiClientSecure.h>
19+
#include <WiFi.h>
1920

2021
// Enter your WiFi SSID and password
2122
char ssid[] = "YOUR_SSID"; // your network SSID (name)

Feather_ePaper_Quotes/adafruit_feather_quote/adafruit_feather_quote.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include <Adafruit_GFX.h> // Core graphics library
2323
#include <HTTPClient.h>
24+
#include <WiFi.h>
2425
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
2526
#include <Adafruit_EPD.h>
2627
#include "secrets.h"
@@ -212,7 +213,7 @@ String getURLResponse(String url)
212213

213214
void getQuote(String &quote, String &author)
214215
{
215-
StaticJsonDocument<1024> doc;
216+
DynamicJsonDocument doc(1024);
216217
String url = "https://www.adafruit.com/api/quotes.php";
217218
String jsonquote = getURLResponse(url);
218219
if(jsonquote.length() > 0)

0 commit comments

Comments
 (0)