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
5047WPA2Enterprise 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 (" \n Starting 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}
0 commit comments