Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cabeaf8

Browse files
committedJul 1, 2024·
SocketWrapper lib Client setConnectionTimeout added
1 parent 2ece915 commit cabeaf8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎libraries/SocketWrapper/src/AClient.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ void arduino::AClient::setSocket(Socket *sock) {
1818
client->setSocket(sock);
1919
}
2020

21+
void arduino::AClient::setConnectionTimeout(unsigned long timeout) {
22+
setSocketTimeout(timeout);
23+
}
24+
25+
2126
void arduino::AClient::setSocketTimeout(unsigned long timeout) {
2227
if (!client) {
2328
newMbedClient();

‎libraries/SocketWrapper/src/AClient.h

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class AClient : public Client {
5353

5454
using Print::write;
5555

56+
void setConnectionTimeout(unsigned long timeout);
5657
void setSocketTimeout(unsigned long timeout);
5758

5859
protected:

0 commit comments

Comments
 (0)
Please sign in to comment.