How to send an SMS with AT commands
Question
How can we send an SMS with AT commands?
Solution
Sending an SMS with AT commands is a relatively simple procedure and requires only two commands.
First, you want to set the module to text mode using the following command:
AT+CMGF=1
After that, you want to set the number that will receive your SMS. This is done with the following command:
AT+CMGS="+46#########"
Then you will be greeted by an ">" marker. This is where you write your SMS. When you are done with your SMS, hit ctrl+Z simultaneously and your SMS will be sent!