Go Down

Topic: New tutorial - Arduino and SIM900 GSM Modules (Read 11 times) previous topic - next topic

tronixstuff

Check out my Arduino tutorials at http://tronixstuff.com/tutorials - Order my  Arduino book from http://nostarch.com/arduino

tronixstuff

Check out my Arduino tutorials at http://tronixstuff.com/tutorials - Order my  Arduino book from http://nostarch.com/arduino

GlomB

There has to be a better way of checking caller-id and the SMS content? Seems really awkward the way you do it now?

tronixstuff

You could store the incoming data into a string and then parse it.
Check out my Arduino tutorials at http://tronixstuff.com/tutorials - Order my  Arduino book from http://nostarch.com/arduino

method8

In something like this:

Code: [Select]
if (SIM900.available() > 0){
    c = SIM900.read();
    if (c != '\r') temp = temp + c;
     else {
        //do something with string temp
     }
}

Go Up