1
0
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:
david gauchard
2023-01-05 09:23:57 +01:00
committed by GitHub
parent c9f90a3ed3
commit 7cfb551f90
7 changed files with 112 additions and 17 deletions

View File

@ -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;