From 4aff80b76e67786d4c72a0eb4e7d47f21e7274c7 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 27 Jun 2024 11:04:21 +0200 Subject: [PATCH] MbedClient: make status() private --- libraries/SocketWrapper/src/AClient.cpp | 6 ------ libraries/SocketWrapper/src/AClient.h | 1 - libraries/SocketWrapper/src/MbedClient.h | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/libraries/SocketWrapper/src/AClient.cpp b/libraries/SocketWrapper/src/AClient.cpp index 272b18946..1403a5139 100644 --- a/libraries/SocketWrapper/src/AClient.cpp +++ b/libraries/SocketWrapper/src/AClient.cpp @@ -65,12 +65,6 @@ uint8_t arduino::AClient::connected() { return client->connected(); } -uint8_t arduino::AClient::status() { - if (!client) - return false; - return client->status(); -} - IPAddress arduino::AClient::remoteIP() { if (!client) return INADDR_NONE; diff --git a/libraries/SocketWrapper/src/AClient.h b/libraries/SocketWrapper/src/AClient.h index 195f7a1f2..f128bd93f 100644 --- a/libraries/SocketWrapper/src/AClient.h +++ b/libraries/SocketWrapper/src/AClient.h @@ -37,7 +37,6 @@ class AClient : public Client { virtual explicit operator bool(); virtual uint8_t connected(); - uint8_t status(); IPAddress remoteIP(); uint16_t remotePort(); diff --git a/libraries/SocketWrapper/src/MbedClient.h b/libraries/SocketWrapper/src/MbedClient.h index 2a6777af4..75ab79997 100644 --- a/libraries/SocketWrapper/src/MbedClient.h +++ b/libraries/SocketWrapper/src/MbedClient.h @@ -50,7 +50,6 @@ class MbedClient { void setNetwork(NetworkInterface* network) {_network = network;} - uint8_t status(); int connect(SocketAddress socketAddress); virtual int connect(IPAddress ip, uint16_t port); virtual int connect(const char* host, uint16_t port); @@ -108,6 +107,7 @@ class MbedClient { rtos::Mutex* mutex = nullptr; unsigned long _timeout; + uint8_t status(); void readSocket(); void getStatus(); };