Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 3eed221

Browse files
authored
Update WT32_ETH01 examples
Using correct `WT32_ETH01_isConnected()` for Ethernet status
1 parent c07a5e4 commit 3eed221

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/WT32_ETH01/AsyncHTTPMultiRequests_WT32_ETH01/AsyncHTTPMultiRequests_WT32_ETH01.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ IPAddress mySN(255, 255, 255, 0);
7979
// Google DNS Server IP
8080
IPAddress myDNS(8, 8, 8, 8);
8181

82-
bool eth_connected = false;
83-
8482
/////////////////////////////////////////////
8583

8684
void heartBeatPrint(void)
8785
{
8886
static int num = 1;
8987

90-
if (eth_connected)
88+
if (WT32_ETH01_isConnected())
9189
Serial.print(F("H")); // H means connected to WiFi
9290
else
9391
Serial.print(F("F")); // F means not connected to WiFi

examples/WT32_ETH01/AsyncHTTPRequest_WT32_ETH01/AsyncHTTPRequest_WT32_ETH01.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ IPAddress mySN(255, 255, 255, 0);
7979
// Google DNS Server IP
8080
IPAddress myDNS(8, 8, 8, 8);
8181

82-
bool eth_connected = false;
83-
8482
/////////////////////////////////////////////
8583

8684
void heartBeatPrint(void)
8785
{
8886
static int num = 1;
8987

90-
if (eth_connected)
88+
if (WT32_ETH01_isConnected())
9189
Serial.print(F("H")); // H means connected
9290
else
9391
Serial.print(F("F")); // F means not connected

0 commit comments

Comments
 (0)