1

sim.println("AT+CMGS=\"+91xxxxxxxxxx\"\r");

I don't want to write this. I want to write mobile number on serial monitor in Arduino and on that number, i want to send message. how can I do?

5
  • I changed the qs for you, hope I made the right corrections! Commented Oct 7, 2020 at 9:21
  • @SomasundharamSampath Where did you get the information for your edit of the question? Have I missed something here? Commented Oct 7, 2020 at 10:21
  • @Mehul What exactly is your problem with this? Is it about the serial communication? Or is it about putting together the received number for sending to the GSM module? What have you tried so far? Have you looked at some of the many examples and tutorials about serial communication? Commented Oct 7, 2020 at 10:23
  • I saw this comment/ answer arduino.stackexchange.com/a/78443/11957 Commented Oct 7, 2020 at 10:23
  • 1
    Actually, there are different different number which may don't know every time. Every time i change number and install on board that is not possible. so i want to make code in which write number and send same message on it. Commented Oct 7, 2020 at 12:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.