Added unsupported wifi fxns

This commit is contained in:
Sara Damiano
2018-09-05 17:09:54 -04:00
parent 8ddb4c39fc
commit df6ab6675b
10 changed files with 18 additions and 3 deletions

Binary file not shown.

View File

@@ -404,6 +404,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions
@@ -411,9 +413,8 @@ 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("+CGATT=1")); sendAT(GF("EE"), 2); // Set security to WPA2
if (waitResponse(60000L) != 1) if (waitResponse() != 1) goto fail;
return false;
// TODO: wait AT+CGATT? // TODO: wait AT+CGATT?

View File

@@ -436,6 +436,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions

View File

@@ -404,6 +404,8 @@ public:
/* /*
* GPRS functions * GPRS functions
*/ */
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) TINY_GSM_ATTR_NOT_AVAILABLE;
bool gprsDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* Messaging functions * Messaging functions

View File

@@ -413,6 +413,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions

View File

@@ -435,6 +435,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions

View File

@@ -471,6 +471,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions

View File

@@ -483,6 +483,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions

View File

@@ -435,6 +435,8 @@ public:
/* /*
* WiFi functions * WiFi functions
*/ */
bool networkConnect(const char* ssid, const char* pwd) TINY_GSM_ATTR_NOT_AVAILABLE;
bool networkDisconnect() TINY_GSM_ATTR_NOT_AVAILABLE;
/* /*
* GPRS functions * GPRS functions