mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
getOperator() to return name instead of number
This commit is contained in:
@@ -321,6 +321,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
String getOperator() {
|
String getOperator() {
|
||||||
|
sendAT(GF("+COPS=3,0")); // Set format
|
||||||
|
waitResponse();
|
||||||
|
|
||||||
sendAT(GF("+COPS?"));
|
sendAT(GF("+COPS?"));
|
||||||
if (waitResponse(GF(GSM_NL "+COPS:")) != 1) {
|
if (waitResponse(GF(GSM_NL "+COPS:")) != 1) {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user