Skip to content

Commit 608370b

Browse files
committed
GSM: add end() implementation
1 parent 59a7e4a commit 608370b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libraries/GSM/src/GSM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ bool arduino::GSMClass::isCmuxEnable() {
110110
}
111111

112112
void arduino::GSMClass::end() {
113-
113+
_device->shutdown();
114114
}
115115

116116
int arduino::GSMClass::disconnect() {

libraries/GSM/src/GSM.h

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ class GSMClass : public MbedSocketClass {
9595
*/
9696
int disconnect(void);
9797

98+
/*
99+
* Reset internal state machine in order to be ready to reconnect again.
100+
*/
98101
void end(void);
99102

100103
unsigned long getTime();

0 commit comments

Comments
 (0)