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.
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: modem.cpp
- Revision:
- 27:fa76f5a08195
- Parent:
- 26:fa3579737329
- Child:
- 30:7e90ddd7ed12
--- a/modem.cpp Sun Dec 23 21:13:19 2018 +0000
+++ b/modem.cpp Sun Dec 23 22:37:25 2018 +0000
@@ -81,11 +81,14 @@
ATwaitForWord("OK",ATTIMEOUT_SHORT);
//PRIORITISE 2G connection (reason being uses less power in some instances and can get cell tower tirangulation)
- ATsendCMD("AT+QCFG=\"nwscanseq\",1");
+ ATsendCMD("AT+QCFG=\"nwscanseq\",1"); //2G priority
+ //ATsendCMD("AT+QCFG=\"nwscanseq\",2"); //3G priority
+ //ATsendCMD("AT+QCFG=\"nwscanseq\",0"); //AUTO
ATwaitForWord("OK",ATTIMEOUT_SHORT);
- //2G only
- //ATsendCMD("AT+QCFG=\"nwscanmode\",1");
+ //CONNECTION TYPE
+ //ATsendCMD("AT+QCFG=\"nwscanmode\",1"); //2G only connection
+ //ATsendCMD("AT+QCFG=\"nwscanmode\",2"); //3G only connection
//ATwaitForWord("OK",ATTIMEOUT_SHORT);
return true;