ublox is getting name from modem
also removed some extra docs
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -228,8 +228,26 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
String getModemName() {
|
String getModemName() {
|
||||||
|
sendAT(GF("CGMI"));
|
||||||
|
String res1;
|
||||||
|
if (waitResponse(1000L, res1) != 1) {
|
||||||
return "u-blox Cellular Modem";
|
return "u-blox Cellular Modem";
|
||||||
}
|
}
|
||||||
|
res1.replace(GSM_NL "OK" GSM_NL, "");
|
||||||
|
res1.replace(GSM_NL, " ");
|
||||||
|
res1.trim();
|
||||||
|
|
||||||
|
sendAT(GF("GMM"));
|
||||||
|
String res2;
|
||||||
|
if (waitResponse(1000L, res1) != 1) {
|
||||||
|
return "u-blox Cellular Modem";
|
||||||
|
}
|
||||||
|
res2.replace(GSM_NL "OK" GSM_NL, "");
|
||||||
|
res2.replace(GSM_NL, " ");
|
||||||
|
res2.trim();
|
||||||
|
|
||||||
|
return res1 + res2;
|
||||||
|
}
|
||||||
|
|
||||||
void setBaud(unsigned long baud) {
|
void setBaud(unsigned long baud) {
|
||||||
sendAT(GF("+IPR="), baud);
|
sendAT(GF("+IPR="), baud);
|
||||||
|
Reference in New Issue
Block a user