Moved begin above init, reset historic buffer sizes
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
|
||||
//#define TINY_GSM_DEBUG Serial
|
||||
|
||||
#if !defined(TINY_GSM_RX_BUFFER)
|
||||
#define TINY_GSM_RX_BUFFER 64
|
||||
#endif
|
||||
|
||||
#define TINY_GSM_MUX_COUNT 7
|
||||
|
||||
#include <TinyGsmCommon.h>
|
||||
@@ -181,6 +185,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()) {
|
||||
@@ -212,10 +220,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool begin(const char* pin = NULL) {
|
||||
return init(pin);
|
||||
}
|
||||
|
||||
String getModemName() {
|
||||
sendAT(GF("+CGMI"));
|
||||
String res1;
|
||||
|
||||
Reference in New Issue
Block a user