Gps coord to gsm sms

I am trying to send the lat and lng from a gps , to a mobile phone connected to an arduino mega 2560. In simple terms i'm trying to do this:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 4); // RX, TX pins

void setup() {
  Serial.begin(9600);
  mySerial.begin(9600); 
  delay(1000);
  char myChar = 'a';
  mySerial.println("AT*EAPP=0,0,\"myChar\"");

}
void loop(){

}

The eapp at command is simple. The "0,0" is putting the phone in sms mode, and after that , between the quotation marks is the sms text. And if i'l run it, there will be a ready sms text with "myChar" as text.
Is there a way to send to phone the value of the myChar; "a" in this case?
Or is there other commands that can send the value of a char or string in a sms?
My phone does not suport simple text mode , and i don't want to use the pdu format.
Thanks!

Hello,

Try something like this:

mySerial.print( "AT*EAPP=0,0,\"" );
mySerial.print( myChar );
mySerial.println( "\"" );

Or you try sprintf, or strcat, whatever.. :wink:

Wow so quick .
Thanks a lot. It worked.