Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ublox-at-cellular-interface by
Diff: UbloxATCellularInterface.cpp
- Revision:
- 9:470a89265a6f
- Parent:
- 7:3b2ca10cc23a
--- a/UbloxATCellularInterface.cpp Thu Aug 03 13:31:32 2017 +0100
+++ b/UbloxATCellularInterface.cpp Tue Aug 15 12:38:31 2017 +0500
@@ -276,6 +276,14 @@
at_set_timeout(30000);
activated = _at->send("AT+UPSDA=" PROFILE ",3") && _at->recv("OK");
at_set_timeout(at_timeout);
+
+ if(!activated)
+ {
+ // Activate, waiting 30 seconds for the connection to be made
+ at_set_timeout(30000);
+ activated = _at->send("AT+UPSDA=" PROFILE ",3") && _at->recv("OK");
+ at_set_timeout(at_timeout);
+ }
}
}
}
