Hi guys , i have a problem i already did this project a couple months ago and its working but now i tried it again . the problem is it can send but cant receive messages , i also tried different codes in google but same output . It can send messages only what is the problem guys ? help me please
show us your complete sketch,
#include <SoftwareSerial.h>
String textMessage;
SoftwareSerial mySerial(9, 10);
void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
delay(5000);
SendMessage();
}
void loop()
{
if (mySerial.available()>0)
textMessage = mySerial.readString();
Serial.print(textMessage);
delay(10);
}
void SendMessage()
{
mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS="+639290584072"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("The system is ready");// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}
it works a couple months ago , the problem every time i send message to gsm nothing appear at serial monitor . send message function is fine