diff --git a/ESP32_S2_WiFi_Tests/JSONdemo/.esp32.test.only b/ESP32_S2_WiFi_Tests/JSONdemo/.none.test.only similarity index 100% rename from ESP32_S2_WiFi_Tests/JSONdemo/.esp32.test.only rename to ESP32_S2_WiFi_Tests/JSONdemo/.none.test.only diff --git a/ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino b/ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino index 0e1b28b70..b6efae356 100644 --- a/ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino +++ b/ESP32_S2_WiFi_Tests/JSONdemo/JSONdemo.ino @@ -16,6 +16,7 @@ last revision November 2015 */ +#include #include #include #include @@ -44,16 +45,9 @@ char ssid[] = "YOUR_SSID"; // your network SSID (name) char pass[] = "YOUR_SSID_PASSWORD"; // your network password (use for WPA, or use as key for WEP) int keyIndex = 0; // your network key Index number (needed only for WEP) - -int status = WL_IDLE_STATUS; -// if you don't want to use DNS (and reduce your sketch size) -// use the numeric IP instead of the name for the server: -//IPAddress server(74,125,232,128); // numeric IP for Google (no DNS) - #define SERVER "cdn.syndication.twimg.com" #define PATH "/widgets/followbutton/info.json?screen_names=adafruit" - void setup() { //Initialize serial and wait for port to open: Serial.begin(115200); @@ -90,7 +84,6 @@ void setup() { display.display(); #endif - while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); diff --git a/ESP32_S2_WiFi_Tests/WiFiSSLClient/WiFiSSLClient.ino b/ESP32_S2_WiFi_Tests/WiFiSSLClient/WiFiSSLClient.ino index 1fdc29cf2..de37b3b59 100644 --- a/ESP32_S2_WiFi_Tests/WiFiSSLClient/WiFiSSLClient.ino +++ b/ESP32_S2_WiFi_Tests/WiFiSSLClient/WiFiSSLClient.ino @@ -16,6 +16,7 @@ last revision November 2015 */ #include +#include // Enter your WiFi SSID and password char ssid[] = "YOUR_SSID"; // your network SSID (name) diff --git a/Feather_ePaper_Quotes/adafruit_feather_quote/adafruit_feather_quote.ino b/Feather_ePaper_Quotes/adafruit_feather_quote/adafruit_feather_quote.ino index 46b72a7b6..f3f23839d 100644 --- a/Feather_ePaper_Quotes/adafruit_feather_quote/adafruit_feather_quote.ino +++ b/Feather_ePaper_Quotes/adafruit_feather_quote/adafruit_feather_quote.ino @@ -21,6 +21,7 @@ #include // Core graphics library #include +#include #include //https://github.com/bblanchon/ArduinoJson #include #include "secrets.h" @@ -212,7 +213,7 @@ String getURLResponse(String url) void getQuote(String "e, String &author) { - StaticJsonDocument<1024> doc; + DynamicJsonDocument doc(1024); String url = "https://www.adafruit.com/api/quotes.php"; String jsonquote = getURLResponse(url); if(jsonquote.length() > 0)