start with a fresh client
This commit is contained in:
parent
0ec1d4fdfb
commit
8ac155a890
1 changed files with 2 additions and 4 deletions
|
|
@ -35,10 +35,6 @@ int status = WL_IDLE_STATUS;
|
||||||
#define SERVER "cdn.syndication.twimg.com"
|
#define SERVER "cdn.syndication.twimg.com"
|
||||||
#define PATH "/widgets/followbutton/info.json?screen_names=adafruit"
|
#define PATH "/widgets/followbutton/info.json?screen_names=adafruit"
|
||||||
|
|
||||||
// Initialize the SSL client library
|
|
||||||
// with the IP address and port of the server
|
|
||||||
// that you want to connect to (port 443 is default for HTTPS):
|
|
||||||
WiFiClientSecure client;
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
//Initialize serial and wait for port to open:
|
//Initialize serial and wait for port to open:
|
||||||
|
|
@ -91,6 +87,8 @@ void setup() {
|
||||||
uint32_t bytes = 0;
|
uint32_t bytes = 0;
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
WiFiClientSecure client;
|
||||||
|
|
||||||
Serial.println("\nStarting connection to server...");
|
Serial.println("\nStarting connection to server...");
|
||||||
#if defined(USE_OLED)
|
#if defined(USE_OLED)
|
||||||
display.clearDisplay(); display.setCursor(0,0);
|
display.clearDisplay(); display.setCursor(0,0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue