i used datatype char and string but same result... i want to save whole data in one datatype as i have to use numeric value from this data.... so please help me what should i do....
and thanks in advance.....
here is the code in which i want to convert string to integer.....
String msg;
String number;
int n; #include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
String temp;
pinMode(13, OUTPUT);
Serial.begin(9600);
mySerial.begin(9600);
mySerial.println("AT");
delay(200);
mySerial.println("AT+CMGF=1"); // set SMS mode to text
delay(200);
mySerial.println("AT+CNMI=1,2,0,0"); // set module to send SMS data to serial out upon receipt
delay(200);
temp=mySerial.read();
}