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! Oct 7 '20 at 9:21
  • @SomasundharamSampath Where did you get the information for your edit of the question? Have I missed something here?
    – chrisl
    Oct 7 '20 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?
    – chrisl
    Oct 7 '20 at 10:23
  • I saw this comment/ answer arduino.stackexchange.com/a/78443/11957 Oct 7 '20 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.
    – Mehul
    Oct 7 '20 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.