Supported factory reset for sim7000

This commit is contained in:
Francesco Stefanni
2021-03-12 15:27:57 +01:00
parent 7cf19beb44
commit 57514b7c4d

View File

@@ -201,7 +201,18 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
}
bool factoryDefaultImpl() { // these commands aren't supported
return false;
sendAT(GF("&FZE0&W")); // Factory + Reset + Echo Off + Write
waitResponse();
sendAT(GF("+IPR=0")); // Auto-baud
waitResponse();
sendAT(GF("+IFC=0,0")); // No Flow Control
waitResponse();
sendAT(GF("+ICF=3,3")); // 8 data 0 parity 1 stop
waitResponse();
sendAT(GF("+CSCLK=0")); // Disable Slow Clock
waitResponse();
sendAT(GF("&W")); // Write configuration
return waitResponse() == 1;
}
/*