Skip to content

Commit 8bb8b5b

Browse files
authored
Add files via upload
1 parent b7fbdba commit 8bb8b5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sim800L.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,17 @@ bool Sim800L::calculateLocation()
260260

261261
uint8_t type = 1;
262262
uint8_t cid = 1;
263-
264-
263+
264+
String tmp = "AT+CIPGSMLOC=" + String(type) + "," + String(cid) + "\r\n";
265+
this->SoftwareSerial::print(tmp);
266+
267+
/*
265268
this->SoftwareSerial::print("AT+CIPGSMLOC=");
266269
this->SoftwareSerial::print(type);
267270
this->SoftwareSerial::print(",");
268271
this->SoftwareSerial::print(cid);
269272
this->SoftwareSerial::print("\r");
270-
273+
*/
271274

272275
String data = _readSerial(20000);
273276

0 commit comments

Comments
 (0)