Skip to content

Commit 89cec9f

Browse files
committed
GSMClient: set default socket timeout
1 parent 389a2c9 commit 89cec9f

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

libraries/GSM/src/GSMClient.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
GSMClient.cpp
3+
Copyright (c) 2023 Arduino SA. All right reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#include "GSMClient.h"
21+
22+
arduino::GSMClient::GSMClient(): MbedClient(100) {
23+
24+
}

libraries/GSM/src/GSMClient.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
namespace arduino {
2727

2828
class GSMClient : public MbedClient {
29+
public:
30+
GSMClient();
31+
32+
private:
2933
NetworkInterface *getNetwork() {
3034
return GSM.getNetwork();
3135
}

libraries/GSM/src/GSMSSLClient.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
GSMSSLClient.cpp
3+
Copyright (c) 2023 Arduino SA. All right reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#include "GSMSSLClient.h"
21+
22+
arduino::GSMSSLClient::GSMSSLClient(): MbedSSLClient(100) {
23+
24+
}

libraries/GSM/src/GSMSSLClient.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ extern const char CA_CERTIFICATES[];
2828
namespace arduino {
2929

3030
class GSMSSLClient : public arduino::MbedSSLClient {
31+
public:
32+
GSMSSLClient();
33+
34+
private:
3135
NetworkInterface *getNetwork() {
3236
return GSM.getNetwork();
3337
}

0 commit comments

Comments
 (0)