File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 26
26
namespace arduino {
27
27
28
28
class GSMClient : public AClient {
29
+ private:
29
30
NetworkInterface *getNetwork () {
30
31
return GSM.getNetwork ();
31
32
}
32
33
34
+ public:
33
35
size_t write (uint8_t b) {
34
36
int ret = 0 ;
35
37
do {
Original file line number Diff line number Diff line change @@ -32,6 +32,25 @@ class GSMSSLClient : public arduino::ASslClient {
32
32
NetworkInterface *getNetwork () {
33
33
return GSM.getNetwork ();
34
34
}
35
+
36
+ public:
37
+ size_t write (uint8_t b) {
38
+ int ret = 0 ;
39
+ do {
40
+ ret = client->write (b);
41
+ delay (0 );
42
+ } while (ret == 0 && status ());
43
+ return ret;
44
+ }
45
+
46
+ size_t write (const uint8_t *buf, size_t size) {
47
+ int ret = 0 ;
48
+ do {
49
+ ret = client->write (buf, size);
50
+ delay (0 );
51
+ } while (ret == 0 && status ());
52
+ return ret;
53
+ }
35
54
};
36
55
37
56
}
You can’t perform that action at this time.
0 commit comments