Skip to content

Commit 33ff7d3

Browse files
facchinmper1234
andauthored
[fixup] Apply suggestions from code review
Co-Authored-By: per1234 <[email protected]>
1 parent f7aa896 commit 33ff7d3

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

examples/WiFiWebClientWPA2Enterprise/WiFiWebClientWPA2Enterprise.ino

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
using the WiFi module.
77
88
This example is written for a network using WPA encryption. For
9-
WEP or WPA, change the Wifi.begin() call accordingly.
10-
11-
This example is written for a network using WPA encryption. For
12-
WEP or WPA, change the Wifi.begin() call accordingly.
9+
WEP or WPA, change the WiFi.begin() call accordingly.
1310
1411
Circuit:
1512
* Board with NINA module (Arduino MKR WiFi 1010, MKR VIDOR 4000 and UNO WiFi Rev.2)
@@ -45,7 +42,7 @@ WiFiClient client;
4542
// Just fill the fields you need
4643
// eg. if you are given only an identity and a certificate, initialize it as
4744
// WPA2Enterprise data("myidentity", ca_pem);
48-
// Certificates are stored in secret tab to avoid sharing them.
45+
// Certificates are stored in the Secret tab to avoid sharing them.
4946

5047
WPA2Enterprise data(EAP_TLS, "myidentity", "username", "password", ca_pem, client_crt, client_key);
5148

@@ -56,7 +53,7 @@ void setup() {
5653
; // wait for serial port to connect. Needed for native USB port only
5754
}
5855

59-
// configure the wifi module to use provided WPA2 Enterprise parameters
56+
// configure the WiFi module to use provided WPA2 Enterprise parameters
6057
WiFi.config(data);
6158

6259
// check for the WiFi module:
@@ -71,7 +68,7 @@ void setup() {
7168
Serial.println("Please upgrade the firmware");
7269
}
7370

74-
// attempt to connect to Wifi network:
71+
// attempt to connect to WiFi network:
7572
while (status != WL_CONNECTED) {
7673
Serial.print("Attempting to connect to SSID: ");
7774
Serial.println(ssid);
@@ -81,7 +78,7 @@ void setup() {
8178
// wait 10 seconds for connection:
8279
delay(10000);
8380
}
84-
Serial.println("Connected to wifi");
81+
Serial.println("Connected to WiFi");
8582
printWifiStatus();
8683

8784
Serial.println("\nStarting connection to server...");
@@ -128,7 +125,7 @@ void printWifiStatus() {
128125

129126
// print the received signal strength:
130127
long rssi = WiFi.RSSI();
131-
Serial.print("signal strength (RSSI):");
128+
Serial.print("signal strength (RSSI): ");
132129
Serial.print(rssi);
133130
Serial.println(" dBm");
134131
}

examples/WiFiWebClientWPA2Enterprise/arduino_secrets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define SECRET_SSID ""
22
#define SECRET_PASS ""
33

4-
// This certificates are completely bogus, but your own should resemble this format
4+
// These certificates are completely bogus, but your own should resemble this format
55

66
const char * ca_pem = "-----BEGIN CERTIFICATE-----\n"
77
"MIID3DCCA0WgAwIBAgIJANe5ZSCKoB8fMA0GCSqGSIb3DQEBCwUAMIGTMQswCQYD\n"

0 commit comments

Comments
 (0)