Hey guys ,
I expend a lot of time with my SMS shield and now that’s work ! \o/
So follow the code
.
Cheers
#include <string.h>
char incoming_char=0;
NewSoftSerial cell(2,3);
void setup()
{
Serial.begin(9600);
cell.begin(9600);
cell.println("AT+CMGF=1");
delay(200);
cell.println("AT+CNMI=3,3,0,0");
Serial.println("Starting SM5100B Communication...");
}
void loop() {
if(cell.available() >0)
{
incoming_char=cell.read();
Serial.print(incoming_char);
}
if(Serial.available() >0)
{
incoming_char=Serial.read();
Serial.print(incoming_char);
cell.print(incoming_char);
}
}