Skip to content

Commit

Permalink
Merge pull request #769 from pennam/client_timeout
Browse files Browse the repository at this point in the history
SocketWrapper: avoid Stream setTimeout shadowing
  • Loading branch information
facchinm authored Jan 9, 2024
2 parents ff3334d + d05696a commit fb002d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/SocketWrapper/src/MbedClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion libraries/SocketWrapper/src/MbedClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb002d4

Please sign in to comment.