From d05696ad9e7ee4d9ec7ab64eea614fb4a6248113 Mon Sep 17 00:00:00 2001 From: pennam Date: Wed, 22 Nov 2023 08:28:09 +0100 Subject: [PATCH] SocketWrapper: rename setTimeout into setSocketTimeout to avoid shadowing --- libraries/SocketWrapper/src/MbedClient.cpp | 2 +- libraries/SocketWrapper/src/MbedClient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SocketWrapper/src/MbedClient.cpp b/libraries/SocketWrapper/src/MbedClient.cpp index 49265c002..9df13c5d5 100644 --- a/libraries/SocketWrapper/src/MbedClient.cpp +++ b/libraries/SocketWrapper/src/MbedClient.cpp @@ -310,6 +310,6 @@ uint16_t arduino::MbedClient::remotePort() { return address.get_port(); } -void arduino::MbedClient::setTimeout(unsigned long timeout) { +void arduino::MbedClient::setSocketTimeout(unsigned long timeout) { _timeout = timeout; } diff --git a/libraries/SocketWrapper/src/MbedClient.h b/libraries/SocketWrapper/src/MbedClient.h index eca0e5a34..cd9929839 100644 --- a/libraries/SocketWrapper/src/MbedClient.h +++ b/libraries/SocketWrapper/src/MbedClient.h @@ -97,7 +97,7 @@ class MbedClient : public arduino::Client { IPAddress remoteIP(); uint16_t remotePort(); - void setTimeout(unsigned long timeout); + void setSocketTimeout(unsigned long timeout); friend class MbedServer; friend class MbedSSLClient;