1010 The body of the PUT request looks like this:
1111 {"on": true} or {"on":false}
1212
13- This example shows how to concatenate Strings to assemble the
13+ This example shows how to concatenate Strings to assemble the
1414 PUT request and the body of the request.
1515
1616 modified 15 Feb 2016
2323#include " arduino_secrets.h"
2424
2525// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
26- // ///// Wifi Settings ///////
26+ // ///// WiFi Settings ///////
2727char ssid[] = SECRET_SSID;
2828char pass[] = SECRET_PASS;
2929
30- int status = WL_IDLE_STATUS; // the Wifi radio's status
30+ int status = WL_IDLE_STATUS; // the WiFi radio's status
3131
3232char hueHubIP[] = " 192.168.0.3" ; // IP address of the HUE bridge
3333String hueUserName = " huebridgeusername" ; // hue bridge username
3434
35- // make a wifi instance and a HttpClient instance:
35+ // make a WiFiClient instance and a HttpClient instance:
3636WiFiClient wifi;
3737HttpClient httpClient = HttpClient(wifi, hueHubIP);
3838
@@ -42,7 +42,7 @@ void setup() {
4242 Serial.begin (9600 );
4343 while (!Serial); // wait for serial port to connect.
4444
45- // attempt to connect to Wifi network:
45+ // attempt to connect to WiFi network:
4646 while ( status != WL_CONNECTED) {
4747 Serial.print (" Attempting to connect to WPA SSID: " );
4848 Serial.println (ssid);
@@ -95,4 +95,4 @@ void sendRequest(int light, String cmd, String value) {
9595 Serial.print (" Server response: " );
9696 Serial.println (response);
9797 Serial.println ();
98- }
98+ }
0 commit comments