Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Print GPS link
- if (inputstringComplete == true && inputString == gpspass) {
- SendTextMessage();
- //Serial.println("Current GPS Location:");
- //Serial.println();
- //Serial.print("https://www.google.com/maps/place/");
- //Serial.print(gps.location.lat(), 6);
- //Serial.print(",");
- //Serial.print(gps.location.lng(), 6);
- // clear the string:
- inputString = "";
- inputstringComplete = false;
- }
- //SendTextMessage()
- ///this function is to send a sms message
- void SendTextMessage()
- {
- Serial.println("Current GPS Location:");
- Serial.println();
- Serial.print(F("https://www.google.com/maps/place/"));
- Serial.print(gps.location.lat(), 6);
- Serial.print(F(","));
- Serial.print(gps.location.lng(), 6);
- //end of message
- delay(100);
- Serial.println((char)26);//the ASCII code of the ctrl+z is 26
- delay(100);
- Serial.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement