Browse Source

Pull some updates from upstream

(cherry picked from commit da6732b5a9)
v_master
Sara Damiano 6 years ago
parent
commit
e9b1e16a3e
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      src/TinyGsmClientA6.h
  2. +1
    -1
      src/TinyGsmClientSIM808.h

+ 3
- 2
src/TinyGsmClientA6.h View File

@ -418,8 +418,9 @@ public:
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
gprsDisconnect();
sendAT(GF("EE"), 2); // Set security to WPA2
if (waitResponse() != 1) goto fail;
sendAT(GF("+CGATT=1"));
if (waitResponse(60000L) != 1)
return false;
// TODO: wait AT+CGATT?


+ 1
- 1
src/TinyGsmClientSIM808.h View File

@ -14,7 +14,7 @@
//============================================================================//
//============================================================================//
// Declaration and Definitio of the TinyGsmSim808 Class
// Declaration and Definition of the TinyGsmSim808 Class
//============================================================================//
//============================================================================//


Loading…
Cancel
Save