| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,11 +2,7 @@ | |||
| 2 | 2 | GET client with HTTP basic authentication for ArduinoHttpClient library | |
| 3 | 3 | Connects to server once every five seconds, sends a GET request | |
| 4 | 4 | ||
| 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 | + | ||
| 10 | 6 | ||
| 11 | 7 | created 14 Feb 2016 | |
| 12 | 8 | by Tom Igoe | |
@@ -17,7 +13,11 @@ | |||
| 17 | 13 | */ | |
| 18 | 14 | #include <ArduinoHttpClient.h> | |
| 19 | 15 | #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; | ||
| 21 | 21 | ||
| 22 | 22 | char serverAddress[] = "192.168.0.3"; // server address | |
| 23 | 23 | int port = 8080; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + #define SECRET_SSID "" | ||
| 2 | + #define SECRET_PASS "" | ||
| 3 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,12 @@ | |||
| 16 | 16 | ||
| 17 | 17 | #include <ArduinoHttpClient.h> | |
| 18 | 18 | #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; | ||
| 20 | 25 | ||
| 21 | 26 | char serverAddress[] = "192.168.0.3"; // server address | |
| 22 | 27 | int port = 8080; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + #define SECRET_SSID "" | ||
| 2 | + #define SECRET_PASS "" | ||
| 3 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,11 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | 10 | For more on dweet.io, see https://dweet.io/play/ | |
| 11 | 11 | ||
| 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 | + | ||
| 17 | 13 | ||
| 18 | 14 | created 15 Feb 2016 | |
| 19 | 15 | updated 16 Feb 2016 | |
@@ -23,7 +19,12 @@ | |||
| 23 | 19 | */ | |
| 24 | 20 | #include <ArduinoHttpClient.h> | |
| 25 | 21 | #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; | ||
| 27 | 28 | ||
| 28 | 29 | const char serverAddress[] = "dweet.io"; // server address | |
| 29 | 30 | int port = 80; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + #define SECRET_SSID "" | ||
| 2 | + #define SECRET_PASS "" | ||
| 3 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,12 @@ | |||
| 18 | 18 | */ | |
| 19 | 19 | #include <ArduinoHttpClient.h> | |
| 20 | 20 | #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; | ||
| 22 | 27 | ||
| 23 | 28 | const char serverAddress[] = "dweet.io"; // server address | |
| 24 | 29 | int port = 80; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + #define SECRET_SSID "" | ||
| 2 | + #define SECRET_PASS "" | ||
| 3 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments