mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +03:00
PHY status API for ethernet drivers (#8784)
* PHY status API for W5500 & ENC28J60 drivers * move linkStatus() from ArduinoEthernet:: to LwipIntfDev:: * LwipIntfDev: include PHY status into ::connected()
This commit is contained in:
@ -52,6 +52,8 @@ void loop() {
|
||||
Serial.print(':');
|
||||
Serial.println(port);
|
||||
|
||||
Serial.printf("Link sense: %d (detectable: %d)\n", eth.isLinked(), eth.isLinkDetectable());
|
||||
|
||||
// Use WiFiClient class to create TCP connections
|
||||
// (this class could have been named TCPClient)
|
||||
WiFiClient client;
|
||||
|
Reference in New Issue
Block a user