Reorder some functions

This commit is contained in:
Sara Damiano
2020-02-11 11:08:03 -05:00
parent 06c31aa856
commit 41531c339b
14 changed files with 317 additions and 283 deletions

View File

@@ -190,12 +190,6 @@ class TinyGsmM590
return waitResponse() == 1;
}
/*
* SIM card functions
*/
protected:
// Able to follow all SIM card functions as inherited from the template
/*
* Generic network functions
*/
@@ -210,6 +204,22 @@ class TinyGsmM590
return (s == REG_OK_HOME || s == REG_OK_ROAMING);
}
/*
* IP Address functions
*/
protected:
String getLocalIPImpl() {
sendAT(GF("+XIIC?"));
if (waitResponse(GF(GSM_NL "+XIIC:")) != 1) {
return "";
}
streamSkipUntil(',');
String res = stream.readStringUntil('\n');
waitResponse();
res.trim();
return res;
}
/*
* GPRS functions
*/
@@ -267,18 +277,10 @@ class TinyGsmM590
}
/*
* IP Address functions
* SIM card functions
*/
protected:
String getLocalIPImpl() {
sendAT(GF("+XIIC?"));
if (waitResponse(GF(GSM_NL "+XIIC:")) != 1) { return ""; }
streamSkipUntil(',');
String res = stream.readStringUntil('\n');
waitResponse();
res.trim();
return res;
}
// Able to follow all SIM card functions as inherited from the template
/*
* Phone Call functions