mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Moved begin above init, reset historic buffer sizes
This commit is contained in:
		| @@ -282,6 +282,10 @@ public: | ||||
|    * Basic functions | ||||
|    */ | ||||
|  | ||||
|   bool begin(const char* pin = NULL) { | ||||
|     return init(pin); | ||||
|   } | ||||
|  | ||||
|   bool init(const char* pin = NULL) { | ||||
|     DBG(GF("### TinyGSM Version:"), TINYGSM_VERSION); | ||||
|  | ||||
| @@ -307,10 +311,6 @@ public: | ||||
|     return ret_val; | ||||
|   } | ||||
|  | ||||
|   bool begin(const char* pin = NULL) { | ||||
|     return init(pin); | ||||
|   } | ||||
|  | ||||
|   String getModemName() { | ||||
|     return getBeeName(); | ||||
|   } | ||||
| @@ -672,6 +672,7 @@ public: | ||||
|   /* | ||||
|    * WiFi functions | ||||
|    */ | ||||
|  | ||||
|   bool networkConnect(const char* ssid, const char* pwd) { | ||||
|  | ||||
|     if (!commandMode()) return false;  // return immediately | ||||
| @@ -730,6 +731,7 @@ public: | ||||
|   /* | ||||
|    * GPRS functions | ||||
|    */ | ||||
|  | ||||
|   bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) { | ||||
|     if (!commandMode()) return false;  // Return immediately | ||||
|     sendAT(GF("AN"), apn);  // Set the APN | ||||
|   | ||||
		Reference in New Issue
	
	Block a user