| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | ## ArduinoHttpClient 0.3.1 - 2017.09.25 | |
| 10 | 10 | ||
| 11 | 11 | * Changed examples to support Arduino Create secret tabs | |
| 12 | - * Increase WebSocket secrect-key length to 24 characters | ||
| 12 | + * Increase WebSocket secret-key length to 24 characters | ||
| 13 | 13 | ||
| 14 | 14 | ## ArduinoHttpClient 0.3.0 - 2017.04.20 | |
| 15 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | #include <WiFi101.h> | |
| 16 | 16 | #include "arduino_secrets.h" | |
| 17 | 17 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 18 | - /////// Wifi Settings /////// | ||
| 18 | + /////// WiFi Settings /////// | ||
| 19 | 19 | char ssid[] = SECRET_SSID; | |
| 20 | 20 | char pass[] = SECRET_PASS; | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | 16 | #include "arduino_secrets.h" | |
| 17 | 17 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 18 | - /////// Wifi Settings /////// | ||
| 18 | + /////// WiFi Settings /////// | ||
| 19 | 19 | char ssid[] = SECRET_SSID; | |
| 20 | 20 | char pass[] = SECRET_PASS; | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | 21 | #include "arduino_secrets.h" | |
| 22 | 22 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 23 | - /////// Wifi Settings /////// | ||
| 23 | + /////// WiFi Settings /////// | ||
| 24 | 24 | char ssid[] = SECRET_SSID; | |
| 25 | 25 | char pass[] = SECRET_PASS; | |
| 26 | 26 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | 17 | #include "arduino_secrets.h" | |
| 18 | 18 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 19 | - /////// Wifi Settings /////// | ||
| 19 | + /////// WiFi Settings /////// | ||
| 20 | 20 | char ssid[] = SECRET_SSID; | |
| 21 | 21 | char pass[] = SECRET_PASS; | |
| 22 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | The body of the PUT request looks like this: | |
| 11 | 11 | {"on": true} or {"on":false} | |
| 12 | 12 | ||
| 13 | - This example shows how to concatenate Strings to assemble the | ||
| 13 | + This example shows how to concatenate Strings to assemble the | ||
| 14 | 14 | PUT request and the body of the request. | |
| 15 | 15 | ||
| 16 | 16 | modified 15 Feb 2016 | |
@@ -23,16 +23,16 @@ | |||
| 23 | 23 | #include "arduino_secrets.h" | |
| 24 | 24 | ||
| 25 | 25 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 26 | - /////// Wifi Settings /////// | ||
| 26 | + /////// WiFi Settings /////// | ||
| 27 | 27 | char ssid[] = SECRET_SSID; | |
| 28 | 28 | char pass[] = SECRET_PASS; | |
| 29 | 29 | ||
| 30 | - int status = WL_IDLE_STATUS; // the Wifi radio's status | ||
| 30 | + int status = WL_IDLE_STATUS; // the WiFi radio's status | ||
| 31 | 31 | ||
| 32 | 32 | char hueHubIP[] = "192.168.0.3"; // IP address of the HUE bridge | |
| 33 | 33 | String hueUserName = "huebridgeusername"; // hue bridge username | |
| 34 | 34 | ||
| 35 | - // make a wifi instance and a HttpClient instance: | ||
| 35 | + // make a WiFiClient instance and a HttpClient instance: | ||
| 36 | 36 | WiFiClient wifi; | |
| 37 | 37 | HttpClient httpClient = HttpClient(wifi, hueHubIP); | |
| 38 | 38 | ||
@@ -42,7 +42,7 @@ void setup() { | |||
| 42 | 42 | Serial.begin(9600); | |
| 43 | 43 | while (!Serial); // wait for serial port to connect. | |
| 44 | 44 | ||
| 45 | - // attempt to connect to Wifi network: | ||
| 45 | + // attempt to connect to WiFi network: | ||
| 46 | 46 | while ( status != WL_CONNECTED) { | |
| 47 | 47 | Serial.print("Attempting to connect to WPA SSID: "); | |
| 48 | 48 | Serial.println(ssid); | |
@@ -95,4 +95,4 @@ void sendRequest(int light, String cmd, String value) { | |||
| 95 | 95 | Serial.print("Server response: "); | |
| 96 | 96 | Serial.println(response); | |
| 97 | 97 | Serial.println(); | |
| 98 | - } | ||
| 98 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | /* | |
| 2 | 2 | POST with headers client for ArduinoHttpClient library | |
| 3 | 3 | Connects to server once every five seconds, sends a POST request | |
| 4 | - with custome headers and a request body | ||
| 4 | + with custom headers and a request body | ||
| 5 | 5 | ||
| 6 | 6 | created 14 Feb 2016 | |
| 7 | 7 | by Tom Igoe | |
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | #include "arduino_secrets.h" | |
| 19 | 19 | ||
| 20 | 20 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 21 | - /////// Wifi Settings /////// | ||
| 21 | + /////// WiFi Settings /////// | ||
| 22 | 22 | char ssid[] = SECRET_SSID; | |
| 23 | 23 | char pass[] = SECRET_PASS; | |
| 24 | 24 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | #include "arduino_secrets.h" | |
| 16 | 16 | ||
| 17 | 17 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 18 | - /////// Wifi Settings /////// | ||
| 18 | + /////// WiFi Settings /////// | ||
| 19 | 19 | char ssid[] = SECRET_SSID; | |
| 20 | 20 | char pass[] = SECRET_PASS; | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ | |||
| 14 | 14 | #include "arduino_secrets.h" | |
| 15 | 15 | ||
| 16 | 16 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 17 | - /////// Wifi Settings /////// | ||
| 17 | + /////// WiFi Settings /////// | ||
| 18 | 18 | char ssid[] = SECRET_SSID; | |
| 19 | 19 | char pass[] = SECRET_PASS; | |
| 20 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | // Released under Apache License, version 2.0 | |
| 3 | 3 | // | |
| 4 | 4 | // Simple example to show how to use the HttpClient library | |
| 5 | - // Get's the web page given at http://<kHostname><kPath> and | ||
| 5 | + // Gets the web page given at http://<kHostname><kPath> and | ||
| 6 | 6 | // outputs the content to the serial port | |
| 7 | 7 | ||
| 8 | 8 | #include <SPI.h> | |
@@ -14,7 +14,7 @@ | |||
| 14 | 14 | #include "arduino_secrets.h" | |
| 15 | 15 | ||
| 16 | 16 | ///////please enter your sensitive data in the Secret tab/arduino_secrets.h | |
| 17 | - /////// Wifi Settings /////// | ||
| 17 | + /////// WiFi Settings /////// | ||
| 18 | 18 | char ssid[] = SECRET_SSID; | |
| 19 | 19 | char pass[] = SECRET_PASS; | |
| 20 | 20 | ||
@@ -42,7 +42,7 @@ void setup() | |||
| 42 | 42 | ; // wait for serial port to connect. Needed for native USB port only | |
| 43 | 43 | } | |
| 44 | 44 | ||
| 45 | - // attempt to connect to Wifi network: | ||
| 45 | + // attempt to connect to WiFi network: | ||
| 46 | 46 | Serial.print("Attempting to connect to WPA SSID: "); | |
| 47 | 47 | Serial.println(ssid); | |
| 48 | 48 | while (WiFi.begin(ssid, pass) != WL_CONNECTED) { | |
@@ -129,5 +129,3 @@ void loop() | |||
| 129 | 129 | // And just stop, now that we've tried a download | |
| 130 | 130 | while(1); | |
| 131 | 131 | } | |
| 132 | - | ||
| 133 | - | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments