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

+6-6
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;
+3
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

-3
This file was deleted.

examples/CustomHeader/CustomHeader.ino

+6-1
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;
+3
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

-3
This file was deleted.

examples/DweetGet/DweetGet.ino

+7-6
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

+3
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

+6-1
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

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/DweetPost/config.h

-2
This file was deleted.

examples/HueBlink/HueBlink.ino

+8-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
This example shows how to concatenate Strings to assemble the
1414
PUT request and the body of the request.
1515
16-
note: WiFi SSID and password are stored in config.h file.
17-
If it is not present, add a new tab, call it "config.h"
18-
and add the following variables:
19-
char ssid[] = "ssid"; // your network SSID (name)
20-
char pass[] = "password"; // your network password
16+
2117
2218
modified 15 Feb 2016
2319
by Tom Igoe (tigoe) to match new API
@@ -26,9 +22,15 @@
2622
#include <SPI.h>
2723
#include <WiFi101.h>
2824
#include <ArduinoHttpClient.h>
29-
#include "config.h"
25+
#include "arduino_secrets.h"
26+
27+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
28+
/////// Wifi Settings ///////
29+
char ssid[] = SECRET_SSID;
30+
char pass[] = SECRET_PASS;
3031

3132
int status = WL_IDLE_STATUS; // the Wifi radio's status
33+
3234
char hueHubIP[] = "192.168.0.3"; // IP address of the HUE bridge
3335
String hueUserName = "huebridgeusername"; // hue bridge username
3436

examples/HueBlink/arduino_secrets.h

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/HueBlink/config.h

-2
This file was deleted.

examples/PostWithHeaders/PostWithHeaders.ino

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
Connects to server once every five seconds, sends a POST request
44
with custome headers and a request body
55
6-
note: WiFi SSID and password are stored in config.h file.
7-
If it is not present, add a new tab, call it "config.h"
8-
and add the following variables:
9-
char ssid[] = "ssid"; // your network SSID (name)
10-
char pass[] = "password"; // your network password
6+
117
128
created 14 Feb 2016
139
by Tom Igoe
@@ -18,7 +14,14 @@
1814
*/
1915
#include <ArduinoHttpClient.h>
2016
#include <WiFi101.h>
21-
#include "config.h"
17+
18+
#include "arduino_secrets.h"
19+
20+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
21+
/////// Wifi Settings ///////
22+
char ssid[] = SECRET_SSID;
23+
char pass[] = SECRET_PASS;
24+
2225

2326
char serverAddress[] = "192.168.0.3"; // server address
2427
int port = 8080;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/PostWithHeaders/config.h

-2
This file was deleted.

examples/SimpleDelete/SimpleDelete.ino

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
Connects to server once every five seconds, sends a DELETE request
44
and a request body
55
6-
note: WiFi SSID and password are stored in config.h file.
7-
If it is not present, add a new tab, call it "config.h"
8-
and add the following variables:
9-
char ssid[] = "ssid"; // your network SSID (name)
10-
char pass[] = "password"; // your network password
6+
117
128
created 14 Feb 2016
139
by Tom Igoe
@@ -16,7 +12,14 @@
1612
*/
1713
#include <ArduinoHttpClient.h>
1814
#include <WiFi101.h>
19-
#include "config.h"
15+
16+
#include "arduino_secrets.h"
17+
18+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
19+
/////// Wifi Settings ///////
20+
char ssid[] = SECRET_SSID;
21+
char pass[] = SECRET_PASS;
22+
2023

2124
char serverAddress[] = "192.168.0.3"; // server address
2225
int port = 8080;
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimpleDelete/config.h

-2
This file was deleted.

examples/SimpleGet/SimpleGet.ino

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
Simple GET client 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
@@ -15,7 +11,14 @@
1511
*/
1612
#include <ArduinoHttpClient.h>
1713
#include <WiFi101.h>
18-
#include "config.h"
14+
15+
#include "arduino_secrets.h"
16+
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;
21+
1922

2023
char serverAddress[] = "192.168.0.3"; // server address
2124
int port = 8080;

examples/SimpleGet/arduino_secrets.h

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimpleGet/config.h

-2
This file was deleted.

examples/SimpleHttpExample/SimpleHttpExample.ino

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@
1111

1212
// This example downloads the URL "http://arduino.cc/"
1313

14-
char ssid[] = "yourNetwork"; // your network SSID (name)
15-
char pass[] = "secretPassword"; // your network password
14+
#include "arduino_secrets.h"
15+
16+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
17+
/////// Wifi Settings ///////
18+
char ssid[] = SECRET_SSID;
19+
char pass[] = SECRET_PASS;
20+
21+
1622

1723
// Name of the server we want to connect to
1824
const char kHostname[] = "arduino.cc";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimplePost/SimplePost.ino

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
Connects to server once every five seconds, sends a POST request
44
and a request body
55
6-
note: WiFi SSID and password are stored in config.h file.
7-
If it is not present, add a new tab, call it "config.h"
8-
and add the following variables:
9-
char ssid[] = "ssid"; // your network SSID (name)
10-
char pass[] = "password"; // your network password
6+
117
128
created 14 Feb 2016
139
by Tom Igoe
@@ -16,7 +12,13 @@
1612
*/
1713
#include <ArduinoHttpClient.h>
1814
#include <WiFi101.h>
19-
#include "config.h"
15+
#include "arduino_secrets.h"
16+
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;
21+
2022

2123
char serverAddress[] = "192.168.0.3"; // server address
2224
int port = 8080;

examples/SimplePost/arduino_secrets.h

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimplePost/config.h

-2
This file was deleted.

examples/SimplePut/SimplePut.ino

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
Connects to server once every five seconds, sends a PUT request
44
and a request body
55
6-
note: WiFi SSID and password are stored in config.h file.
7-
If it is not present, add a new tab, call it "config.h"
8-
and add the following variables:
9-
char ssid[] = "ssid"; // your network SSID (name)
10-
char pass[] = "password"; // your network password
6+
117
128
created 14 Feb 2016
139
by Tom Igoe
@@ -16,7 +12,13 @@
1612
*/
1713
#include <ArduinoHttpClient.h>
1814
#include <WiFi101.h>
19-
#include "config.h"
15+
#include "arduino_secrets.h"
16+
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;
21+
2022

2123
char serverAddress[] = "192.168.0.3"; // server address
2224
int port = 8080;

examples/SimplePut/arduino_secrets.h

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimplePut/config.h

-2
This file was deleted.

examples/SimpleWebSocket/SimpleWebSocket.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
Connects to the WebSocket server, and sends a hello
44
message every 5 seconds
55
6-
note: WiFi SSID and password are stored in config.h file.
7-
If it is not present, add a new tab, call it "config.h"
8-
and add the following variables:
9-
char ssid[] = "ssid"; // your network SSID (name)
10-
char pass[] = "password"; // your network password
116
127
created 28 Jun 2016
138
by Sandeep Mistry
@@ -16,7 +11,12 @@
1611
*/
1712
#include <ArduinoHttpClient.h>
1813
#include <WiFi101.h>
19-
#include "config.h"
14+
#include "arduino_secrets.h"
15+
16+
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
17+
/////// Wifi Settings ///////
18+
char ssid[] = SECRET_SSID;
19+
char pass[] = SECRET_PASS;
2020

2121
char serverAddress[] = "echo.websocket.org"; // server address
2222
int port = 80;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#define SECRET_SSID ""
2+
#define SECRET_PASS ""
3+

examples/SimpleWebSocket/config.h

-3
This file was deleted.

0 commit comments

Comments
 (0)