From e0e2ac73188620bb15b1c392ec73a74b8ff9c584 Mon Sep 17 00:00:00 2001 From: mestrode <35630715+mestrode@users.noreply.github.com> Date: Sun, 7 Jan 2024 01:27:30 +0100 Subject: [PATCH 1/2] depreceated: WiFiClient available(...) --- src/RemoteDebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RemoteDebug.cpp b/src/RemoteDebug.cpp index 84e6970..8354c9f 100644 --- a/src/RemoteDebug.cpp +++ b/src/RemoteDebug.cpp @@ -367,7 +367,7 @@ void RemoteDebug::handle() // Verify if the IP is same than actual conection WiFiClient newClient; // @suppress("Abstract class cannot be instantiated") - newClient = TelnetServer.available(); + newClient = TelnetServer.accepted(); String ip = newClient.remoteIP().toString(); if (ip == TelnetClient.remoteIP().toString()) @@ -393,7 +393,7 @@ void RemoteDebug::handle() // New TCP client - TelnetClient = TelnetServer.available(); + TelnetClient = TelnetServer.accepted(); // Password request ? - 18/07/18 From f0893118a7b579d4f341a48bb445f8e156fecb2e Mon Sep 17 00:00:00 2001 From: mestrode <35630715+mestrode@users.noreply.github.com> Date: Sun, 7 Jan 2024 01:29:53 +0100 Subject: [PATCH 2/2] typo --- src/RemoteDebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RemoteDebug.cpp b/src/RemoteDebug.cpp index 8354c9f..dd88308 100644 --- a/src/RemoteDebug.cpp +++ b/src/RemoteDebug.cpp @@ -367,7 +367,7 @@ void RemoteDebug::handle() // Verify if the IP is same than actual conection WiFiClient newClient; // @suppress("Abstract class cannot be instantiated") - newClient = TelnetServer.accepted(); + newClient = TelnetServer.accept(); String ip = newClient.remoteIP().toString(); if (ip == TelnetClient.remoteIP().toString()) @@ -393,7 +393,7 @@ void RemoteDebug::handle() // New TCP client - TelnetClient = TelnetServer.accepted(); + TelnetClient = TelnetServer.accept(); // Password request ? - 18/07/18