Skip to content

Commit 889d7b3

Browse files
committed
St update
1 parent 050821b commit 889d7b3

34 files changed

+126
-81
lines changed

examples/BasicAuthGet/BasicAuthGet.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
GET client with HTTP basic authentication for ArduinoHttpClient library
33
Connects to server once every five seconds, sends a GET request
44
5-
note: WiFi SSID and password are stored in config.h file.
6-
If it is not present, add a new tab, call it "config.h"
7-
and add the following variables:
8-
char ssid[] = "ssid"; // your network SSID (name)
9-
char pass[] = "password"; // your network password
5+
106
117
created 14 Feb 2016
128
by Tom Igoe
@@ -17,7 +13,11 @@
1713
*/
1814
#include <ArduinoHttpClient.h>
1915
#include <WiFi101.h>
20-
#include "config.h"
16+
#include "arduino_secrets.h"
17+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
18+
/////// Wifi Settings ///////
19+
char ssid[] = SECRET_SSID;
20+
char pass[] = SECRET_PASS;
2121

2222
char serverAddress[] = "192.168.0.3"; // server address
2323
int port = 8080;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/BasicAuthGet/config.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/CustomHeader/CustomHeader.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616

1717
#include <ArduinoHttpClient.h>
1818
#include <WiFi101.h>
19-
#include "config.h"
19+
20+
#include "arduino_secrets.h"
21+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
22+
/////// Wifi Settings ///////
23+
char ssid[] = SECRET_SSID;
24+
char pass[] = SECRET_PASS;
2025

2126
char serverAddress[] = "192.168.0.3"; // server address
2227
int port = 8080;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/CustomHeader/config.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/DweetGet/DweetGet.ino

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
1010
For more on dweet.io, see https://dweet.io/play/
1111
12-
note: WiFi SSID and password are stored in config.h file.
13-
If it is not present, add a new tab, call it "config.h"
14-
and add the following variables:
15-
char ssid[] = "ssid"; // your network SSID (name)
16-
char pass[] = "password"; // your network password
12+
1713
1814
created 15 Feb 2016
1915
updated 16 Feb 2016
@@ -23,7 +19,12 @@
2319
*/
2420
#include <ArduinoHttpClient.h>
2521
#include <WiFi101.h>
26-
#include "config.h"
22+
23+
#include "arduino_secrets.h"
24+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
25+
/////// Wifi Settings ///////
26+
char ssid[] = SECRET_SSID;
27+
char pass[] = SECRET_PASS;
2728

2829
const char serverAddress[] = "dweet.io"; // server address
2930
int port = 80;

examples/DweetGet/arduino_secrets.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/DweetPost/DweetPost.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
*/
1919
#include <ArduinoHttpClient.h>
2020
#include <WiFi101.h>
21-
#include "config.h"
21+
22+
#include "arduino_secrets.h"
23+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
24+
/////// Wifi Settings ///////
25+
char ssid[] = SECRET_SSID;
26+
char pass[] = SECRET_PASS;
2227

2328
const char serverAddress[] = "dweet.io"; // server address
2429
int port = 80;

examples/DweetPost/arduino_secrets.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

0 commit comments

Comments
 (0)