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

Commit

Permalink
Update WT32_ETH01 examples
Browse files Browse the repository at this point in the history
Using correct `WT32_ETH01_isConnected()` for Ethernet status
  • Loading branch information
khoih-prog authored Mar 22, 2022
1 parent b60a54a commit 4377ec7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ IPAddress mySN(255, 255, 255, 0);
// Google DNS Server IP
IPAddress myDNS(8, 8, 8, 8);

bool eth_connected = false;

/////////////////////////////////////////////

void heartBeatPrint()
{
static int num = 1;

if (eth_connected)
if (WT32_ETH01_isConnected())
Serial.print(F("H")); // H means connected
else
Serial.print(F("F")); // F means not connected
Expand Down

0 comments on commit 4377ec7

Please sign in to comment.