6
6
using the WiFi module.
7
7
8
8
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.
13
10
14
11
Circuit:
15
12
* Board with NINA module (Arduino MKR WiFi 1010, MKR VIDOR 4000 and UNO WiFi Rev.2)
@@ -45,7 +42,7 @@ WiFiClient client;
45
42
// Just fill the fields you need
46
43
// eg. if you are given only an identity and a certificate, initialize it as
47
44
// 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.
49
46
50
47
WPA2Enterprise data (EAP_TLS, " myidentity" , " username" , " password" , ca_pem, client_crt, client_key);
51
48
@@ -56,7 +53,7 @@ void setup() {
56
53
; // wait for serial port to connect. Needed for native USB port only
57
54
}
58
55
59
- // configure the wifi module to use provided WPA2 Enterprise parameters
56
+ // configure the WiFi module to use provided WPA2 Enterprise parameters
60
57
WiFi.config (data);
61
58
62
59
// check for the WiFi module:
@@ -71,7 +68,7 @@ void setup() {
71
68
Serial.println (" Please upgrade the firmware" );
72
69
}
73
70
74
- // attempt to connect to Wifi network:
71
+ // attempt to connect to WiFi network:
75
72
while (status != WL_CONNECTED) {
76
73
Serial.print (" Attempting to connect to SSID: " );
77
74
Serial.println (ssid);
@@ -81,7 +78,7 @@ void setup() {
81
78
// wait 10 seconds for connection:
82
79
delay (10000 );
83
80
}
84
- Serial.println (" Connected to wifi " );
81
+ Serial.println (" Connected to WiFi " );
85
82
printWifiStatus ();
86
83
87
84
Serial.println (" \n Starting connection to server..." );
@@ -128,7 +125,7 @@ void printWifiStatus() {
128
125
129
126
// print the received signal strength:
130
127
long rssi = WiFi.RSSI ();
131
- Serial.print (" signal strength (RSSI):" );
128
+ Serial.print (" signal strength (RSSI): " );
132
129
Serial.print (rssi);
133
130
Serial.println (" dBm" );
134
131
}
0 commit comments