mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
@@ -418,8 +418,9 @@ public:
|
|||||||
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
|
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
|
||||||
gprsDisconnect();
|
gprsDisconnect();
|
||||||
|
|
||||||
sendAT(GF("EE"), 2); // Set security to WPA2
|
sendAT(GF("+CGATT=1"));
|
||||||
if (waitResponse() != 1) goto fail;
|
if (waitResponse(60000L) != 1)
|
||||||
|
return false;
|
||||||
|
|
||||||
// TODO: wait AT+CGATT?
|
// TODO: wait AT+CGATT?
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
//============================================================================//
|
//============================================================================//
|
||||||
//============================================================================//
|
//============================================================================//
|
||||||
// Declaration and Definitio of the TinyGsmSim808 Class
|
// Declaration and Definition of the TinyGsmSim808 Class
|
||||||
//============================================================================//
|
//============================================================================//
|
||||||
//============================================================================//
|
//============================================================================//
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user