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:
		@@ -13,6 +13,10 @@
 | 
			
		||||
//#define TINY_GSM_DEBUG Serial
 | 
			
		||||
//#define TINY_GSM_USE_HEX
 | 
			
		||||
 | 
			
		||||
#if !defined(TINY_GSM_RX_BUFFER)
 | 
			
		||||
  #define TINY_GSM_RX_BUFFER 64
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define TINY_GSM_MUX_COUNT 12
 | 
			
		||||
 | 
			
		||||
#include <TinyGsmCommon.h>
 | 
			
		||||
@@ -152,6 +156,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);
 | 
			
		||||
    if (!testAT()) {
 | 
			
		||||
@@ -166,10 +174,6 @@ public:
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool begin(const char* pin = NULL) {
 | 
			
		||||
    return init(pin);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  String getModemName() {
 | 
			
		||||
    return "Quectel BG96";
 | 
			
		||||
  }
 | 
			
		||||
@@ -292,6 +296,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
 | 
			
		||||
  /*
 | 
			
		||||
   * GPRS functions
 | 
			
		||||
   */
 | 
			
		||||
 | 
			
		||||
  bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
 | 
			
		||||
    gprsDisconnect();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user