1717
1818#include " arduino_secrets.h"
1919// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
20- char ssid[] = SECRET_SSID; // your network SSID (name)
21- char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
22- int keyIndex = 0 ; // your network key Index number (needed only for WEP)
20+ char ssid[] = SECRET_SSID; // your network SSID (name)
21+ char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
22+ int keyIndex = 0 ; // your network key Index number (needed only for WEP)
2323
2424int status = WL_IDLE_STATUS;
2525// if you don't want to use DNS (and reduce your sketch size)
2626// use the numeric IP instead of the name for the server:
2727// IPAddress server(93,184,216,34); // IP address for example.com (no DNS)
28- char server[] = " example.com" ; // host name for example.com (using DNS)
28+ char server[] = " example.com" ; // host name for example.com (using DNS)
2929
3030ZephyrClient client;
3131
3232void setup () {
3333 // Initialize serial and wait for port to open:
3434 Serial.begin (9600 );
3535 while (!Serial) {
36- ; // wait for serial port to connect. Needed for native USB port only
36+ ; // wait for serial port to connect. Needed for native USB port only
3737 }
3838
3939 // check for the WiFi module:
4040 if (WiFi.status () == WL_NO_SHIELD) {
4141 Serial.println (" Communication with WiFi module failed!" );
4242 // don't continue
43- while (true );
43+ while (true )
44+ ;
4445 }
4546
4647 // attempt to connect to Wifi network:
@@ -49,7 +50,6 @@ void setup() {
4950 Serial.println (ssid);
5051 // Connect to WPA/WPA2 network. Change this line if using open or WEP network:
5152 status = WiFi.begin (ssid, pass);
52- Serial.println (status);
5353 // wait 3 seconds for connection:
5454 delay (3000 );
5555 }
@@ -84,7 +84,8 @@ void loop() {
8484 client.stop ();
8585
8686 // do nothing forevermore:
87- while (true );
87+ while (true )
88+ ;
8889 }
8990}
9091
0 commit comments