Gps coord to gsm sms
i trying send lat , lng gps , mobile phone connected arduino mega 2560. in simple terms i'm trying this:
the eapp @ command simple. "0,0" putting phone in sms mode, , after that , between quotation marks sms text. , if i'l run it, there ready sms text "mychar" text.
is there way send phone value of mychar; "a" in case?
or there other commands can send value of char or string in sms?
my phone not suport simple text mode , and don't want use pdu format.
thanks!
code: [select]
#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 @ command simple. "0,0" putting phone in sms mode, , after that , between quotation marks sms text. , if i'l run it, there ready sms text "mychar" text.
is there way send phone value of mychar; "a" in case?
or there other commands can send value of char or string in sms?
my phone not suport simple text mode , and don't want use pdu format.
thanks!
hello,
try this:
or try sprintf, or strcat, whatever..
try this:
code: [select]
myserial.print( "at*eapp=0,0,\"" );
myserial.print( mychar );
myserial.println( "\"" );
or try sprintf, or strcat, whatever..

Arduino Forum > Using Arduino > Programming Questions > Gps coord to gsm sms
arduino
Comments
Post a Comment