Hello friends,
Task : receiving SMS without interupting other task
library : SoftwareSerial for GSM rx,tx
Problem : 1.In Reading SMS only when it comes and if certain other task is going on msg should store in sim mem and read msg from perticular position.
2.Cant use SerialEvent concept in "softWareserial" library
I have to do certain task after receiving msg from GSM sim900.
i'm not using any library because of more memory usage.this code i'm trying but prints 'Hello"more no. of times if some data comes on serial and i have to perform task only once if som data available
void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available())
{
Serial.println("Hello");
Serial.read();
delay(10000);
}
//other task to be perform
}