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

Commit 4377ec7

Browse files
authored
Update WT32_ETH01 examples
Using correct `WT32_ETH01_isConnected()` for Ethernet status
1 parent b60a54a commit 4377ec7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/WT32_ETH01/AsyncHTTPSRequest_WT32_ETH01/AsyncHTTPSRequest_WT32_ETH01.ino

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

87-
bool eth_connected = false;
88-
8987
/////////////////////////////////////////////
9088

9189
void heartBeatPrint()
9290
{
9391
static int num = 1;
9492

95-
if (eth_connected)
93+
if (WT32_ETH01_isConnected())
9694
Serial.print(F("H")); // H means connected
9795
else
9896
Serial.print(F("F")); // F means not connected

0 commit comments

Comments
 (0)