mirror of
https://github.com/khoih-prog/AsyncHTTPRequest_Generic.git
synced 2025-07-30 18:37:15 +02:00
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
|
// Google DNS Server IP
|
||||||
IPAddress myDNS(8, 8, 8, 8);
|
IPAddress myDNS(8, 8, 8, 8);
|
||||||
|
|
||||||
bool eth_connected = false;
|
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
|
|
||||||
void heartBeatPrint(void)
|
void heartBeatPrint(void)
|
||||||
{
|
{
|
||||||
static int num = 1;
|
static int num = 1;
|
||||||
|
|
||||||
if (eth_connected)
|
if (WT32_ETH01_isConnected())
|
||||||
Serial.print(F("H")); // H means connected to WiFi
|
Serial.print(F("H")); // H means connected to WiFi
|
||||||
else
|
else
|
||||||
Serial.print(F("F")); // F means not connected to WiFi
|
Serial.print(F("F")); // F means not connected to WiFi
|
||||||
|
@ -79,15 +79,13 @@ IPAddress mySN(255, 255, 255, 0);
|
|||||||
// Google DNS Server IP
|
// Google DNS Server IP
|
||||||
IPAddress myDNS(8, 8, 8, 8);
|
IPAddress myDNS(8, 8, 8, 8);
|
||||||
|
|
||||||
bool eth_connected = false;
|
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
|
|
||||||
void heartBeatPrint(void)
|
void heartBeatPrint(void)
|
||||||
{
|
{
|
||||||
static int num = 1;
|
static int num = 1;
|
||||||
|
|
||||||
if (eth_connected)
|
if (WT32_ETH01_isConnected())
|
||||||
Serial.print(F("H")); // H means connected
|
Serial.print(F("H")); // H means connected
|
||||||
else
|
else
|
||||||
Serial.print(F("F")); // F means not connected
|
Serial.print(F("F")); // F means not connected
|
||||||
|
Reference in New Issue
Block a user