Browse Source

Implement factory restore for UBLOX LTE-M

v_master
Sara Damiano 6 years ago
parent
commit
c89af3019e
2 changed files with 6 additions and 3 deletions
  1. +0
    -0
      extras/AT Command Manuals/u-blox Cellular AT Commands R60 (UBX-13002752).pdf
  2. +6
    -3
      src/TinyGsmClientUBLOX.h

extras/AT Command Manuals/u-blox Cellular ATCommands R60 (UBX-13002752).pdf → extras/AT Command Manuals/u-blox Cellular AT Commands R60 (UBX-13002752).pdf View File


+ 6
- 3
src/TinyGsmClientUBLOX.h View File

@ -329,12 +329,15 @@ public:
bool factoryDefault() {
if (!isCatM) {
sendAT(GF("+UFACTORY=0,1")); // Factory + Reset + Echo Off
sendAT(GF("+UFACTORY=0,1")); // No factory restore, erase NVM
waitResponse();
sendAT(GF("+CFUN=16")); // Auto-baud
sendAT(GF("+CFUN=16")); // Reset
return waitResponse() == 1;
}
else {
sendAT(GF("&F")); // Resets the current profile, other NVM not affected
return waitResponse() == 1;
}
else return false;
}
String getModemInfo() {


Loading…
Cancel
Save