Skip to content
Prev Previous commit
Next Next commit
GSM: add end() implementation
  • Loading branch information
pennam committed Mar 26, 2025
commit 249f84cb59ba4f058489f372c039f2789347000a
2 changes: 1 addition & 1 deletion libraries/GSM/src/GSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ bool arduino::GSMClass::isCmuxEnable() {
}

void arduino::GSMClass::end() {

_device->shutdown();
}

int arduino::GSMClass::disconnect() {
Expand Down
3 changes: 3 additions & 0 deletions libraries/GSM/src/GSM.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class GSMClass : public MbedSocketClass {
*/
int disconnect(void);

/*
* Reset internal state machine in order to be ready to reconnect again.
*/
void end(void);

unsigned long getTime();
Expand Down