]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
EthernetUART: Debug Version
authorOle Artz <ole.artz@t-online.de>
Wed, 15 Jul 2020 14:56:20 +0000 (16:56 +0200)
committerOle Artz <ole.artz@t-online.de>
Wed, 15 Jul 2020 14:56:20 +0000 (16:56 +0200)
esp32/EthernetUART/LANTelnetToSerial_Board/LANTelnetToSerial_Board.ino

index fc939c4f8c5e1e6b32f9e5239e94b5a24f770181..0d8044a8dcf0662b9ea6d0601eb704bc403051e4 100644 (file)
@@ -8,7 +8,7 @@
 # ### author: O.Artz                            ### #
 # ###                                           ### #
 # ###                                           ### #
-# ### UPDATE 2020-07-10                         ### #
+# ### UPDATE 2020-07-15                         ### #
 # ###                                           ### #
 #####################################################
 
@@ -24,7 +24,7 @@ ETH Disconnected/stopped  -> Orange LED on
 
 //load needed Libaries
 #include <ETH.h>
-#include <WiFi.h>
+//#include <WiFi.h>
 
 //how many clients should be able to telnet to this ESP32
 #define MAX_SRV_CLIENTS 1
@@ -106,13 +106,12 @@ void setup()
   //visual status for telnet work
   digitalWrite(2,LOW);
   digitalWrite(15,HIGH);
-  Serial.print(WiFi.status());
 }
 
 void loop()
 {
   uint8_t i;
-  if (WiFi.status() == WL_CONNECTED) {
+  if (eth_connected == true) {
     //check if there are any new clients
     if (server.hasClient()) {
       for(i = 0; i < MAX_SRV_CLIENTS; i++) {