forked from khoih-prog/AsyncHTTPRequest_Generic
Update WT32_ETH01 examples
Using correct `WT32_ETH01_isConnected()` for Ethernet status
This commit is contained in:
@ -79,15 +79,13 @@ IPAddress mySN(255, 255, 255, 0);
|
||||
// Google DNS Server IP
|
||||
IPAddress myDNS(8, 8, 8, 8);
|
||||
|
||||
bool eth_connected = false;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
|
||||
void heartBeatPrint(void)
|
||||
{
|
||||
static int num = 1;
|
||||
|
||||
if (eth_connected)
|
||||
if (WT32_ETH01_isConnected())
|
||||
Serial.print(F("H")); // H means connected to WiFi
|
||||
else
|
||||
Serial.print(F("F")); // F means not connected to WiFi
|
||||
|
@ -79,15 +79,13 @@ IPAddress mySN(255, 255, 255, 0);
|
||||
// Google DNS Server IP
|
||||
IPAddress myDNS(8, 8, 8, 8);
|
||||
|
||||
bool eth_connected = false;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
|
||||
void heartBeatPrint(void)
|
||||
{
|
||||
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
|
||||
|
Reference in New Issue
Block a user