I wanted to my GSM to recieve SMSs. I have written a sketch for it. But while verifying the sketch an error pops out in this part:
if (sms.available()) {
sms.remoteNumber(senderNnumber, 20);
if (senderNumber == "09432167015") {
c = sms.read();
if (c == "yes") {
alarm_police();
}
}
}
The error message:
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Uno"
GuardDog_v2.5.ino: In function 'void loop()': GuardDog_v2.5:201: error: 'senderNnumber' was not declared in this scope GuardDog_v2.5:204: error: ISO C++ forbids comparison between pointer and >integer [-fpermissive] 'senderNnumber' was not declared in this scope
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
I have checked the receiving sms example and have written the sketch according to the example.I need help regarding this error and how to fix it