mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Implement factory restore for UBLOX LTE-M
This commit is contained in:
		| @@ -329,12 +329,15 @@ public: | |||||||
|  |  | ||||||
|   bool factoryDefault() { |   bool factoryDefault() { | ||||||
|     if (!isCatM) { |     if (!isCatM) { | ||||||
|       sendAT(GF("+UFACTORY=0,1"));  // Factory + Reset + Echo Off |       sendAT(GF("+UFACTORY=0,1"));  // No factory restore, erase NVM | ||||||
|       waitResponse(); |       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; |       return waitResponse() == 1; | ||||||
|     } |     } | ||||||
|     else return false; |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   String getModemInfo() { |   String getModemInfo() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user