SIM800C send sms

I hook up uno + sim800C + EM506(GPS SHIELD) So far I only have the retrive lat and lon and store to String, My concern is how to send the “parse” value via sms can anyone give a sample code

#include <TinyGPS++.h>
#include <SoftwareSerial.h>

TinyGPSPlus gps;
SoftwareSerial gpsSerial(2,3);
double X,Y;
String sLat,sLon,send;
bool vSms = false;

void setup() 
{
  Serial.begin(9600);
  gpsSerial.begin(4800);
   delay(3000);
 }

void loop() 
{
  while (gpsSerial.available() > 0)
    if (gps.encode(gpsSerial.read()))
      getLocation();
  if (millis() > 5000 && gps.charsProcessed() < 10)
  {
    Serial.println(F("No GPS detected"));
    while(true);
  }
}

void getLocation(){
  if(gps.location.isValid()){
    X = (gps.location.lat());
    Y = (gps.location.lng());
    sLat = String(X,6); sLon = String(Y,6);
    parse =("Latitude: "+sLat+"\nLongitude: "+sLon);
  }else{
    Serial.println(F("INVALID"));
  }
}

The code above is working.

I would not use the String class to build the parse string, you can just send that out in chunks when you build your SMS body

The sim800 - do you plan to use AT commands directly or use a library? Suggest you look up for sample examples for sending SMS

See for example GSM Sim800l Arduino Library

Either AT or library which is more stable

J-M-L:
I would not use the String class to build the parse string, you can just send that out in chunks when you build your SMS body

The sim800 - do you plan to use AT commands directly or use a library? Suggest you look up for sample examples for sending SMS

See for example GSM Sim800l Arduino Library

Is it ok to use the sim800l library if fhe use sim800c, It's my first time using this

I don’t know - never used the ‘C’… give it a try…

are you posting multiple times on that topic? please ask moderator to merge threads