Skip to content

Commit 389a2c9

Browse files
committed
MbedSSLClient add possibility to set socket timeout in constructor
1 parent 4cedb61 commit 389a2c9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "MbedSSLClient.h"
22

3+
arduino::MbedSSLClient::MbedSSLClient(unsigned long timeout): MbedClient(timeout), _disableSNI{false} {
4+
onBeforeConnect(mbed::callback(this, &MbedSSLClient::setRootCA));
5+
}
6+
37
arduino::MbedSSLClient::MbedSSLClient(): _disableSNI{false} {
48
onBeforeConnect(mbed::callback(this, &MbedSSLClient::setRootCA));
59
};

libraries/SocketWrapper/src/MbedSSLClient.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class MbedSSLClient : public arduino::MbedClient {
3232

3333
public:
3434
MbedSSLClient();
35+
36+
MbedSSLClient(unsigned long timeout);
37+
3538
virtual ~MbedSSLClient() {
3639
stop();
3740
}

0 commit comments

Comments
 (0)