Skip to content

Commit 81b7f02

Browse files
authored
Fix class used for client
Fix error as NetworkClient class is not found in the context. Used WiFiClient class instead.
1 parent 5de054b commit 81b7f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/examples/WiFiClientEnterprise/WiFiClientEnterprise.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void loop() {
6565
}
6666
Serial.print("Connecting to website: ");
6767
Serial.println(host);
68-
NetworkClient client;
68+
WiFiClient client;
6969
if (client.connect(host, 80)) {
7070
String url = "/rele/rele1.txt";
7171
client.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "User-Agent: ESP32\r\n" + "Connection: close\r\n\r\n");

0 commit comments

Comments
 (0)