Skip to content

GSM: allow retry if connection fails #975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GSM: add end() implementation
  • Loading branch information
pennam committed Nov 14, 2024
commit 77118fa7c8c1706991d171a99053194492fe6251
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