I can't get data fully in SMS (receive from mobile phone) 50 char in sim800l using arduino mega.
I get only 12 characters. I need to get atleast 100 char guys please help me its really helpfull.
i'm waiting.
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
//Begin serial communication with Arduino and SIM800L
Serial1.begin(9600);
Serial.println("Initializing...");
delay(1000);
Serial1.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
Serial1.println("AT+CMGF=1"); // Configuring TEXT mode
updateSerial();
Serial1.println("AT+CNMI=1,2,0,0,0"); // Decides how newly arrived SMS messages should be handled
updateSerial();
}
void loop()
{
updateSerial();
}
void updateSerial()
{
delay(500);
while (Serial.available())
{
Serial1.write(char (Serial1.read()));//Forward what Serial received to Software Serial Port
}
while(Serial1.available())
{
Serial.write(char (Serial1.read()));//Forward what Software Serial received to Serial Port
}
}
OUTPUT OF MY PROGRAM:-
Thank you guys
Reference link: