How to send a String variable holding a number using AT+CMGS command. I have used the following code snippet
Serial.println("AT+CMGS="" + myString + """);
I am using UNO and 'myString' is declared as 'String' which contains a mobile number.
The problem is I am unable to receive the message when the mobile number changes in the variable.
But instead, I get the message when I use,
Serial.println("AT+CMGS="+9163XXXXXXX3"\r");