
The SMS command exists to send and receive SMS messages over a GSM network.
The SMS command requires 1 or 3 arguments.
If the only argument is GET, the output will be the youngest SMS received by the GSM modem. If there are no messages stored, ERR_REJECTED(8) is returned. Otherwise a SMS is pulled off the modem and printed out as header an message body separated by CR/LFs. An SMS can only be read once.
If the first argument is SEND, then the second one must be the receipient's mobile phone number and the third one is the message text. Spaces inside the message must be coded as 32, because the command interface does not allow spaces inside arguments.
ERR_OK (0) - if command is accepted
ERR_ARGUMENT (4) - if there's aproblem with the arguments
ERR_REJECTED (12) - if READ or GET fails for any reason
ERR_PARAMCOUNT (3) - If number of argument didn't match
SMS SEND 017636175395 Hello\032World!
This command only exists on modules with FW version 6.05 and above. Also a GSM modem must be attached to the module.