Pull some updates from upstream

This commit is contained in:
Sara Damiano
2018-09-07 12:47:19 -04:00
parent 078bc6d0fc
commit da6732b5a9
4 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ class TinyGsmA6
//============================================================================//
//============================================================================//
// The Internal A6 Client Class
// The Internal A6 Client Class
//============================================================================//
//============================================================================//
@@ -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?