WaitAndReceiveSMS: Difference between revisions
Jump to navigation
Jump to search
m (Administrator moved page R2D2 - WaitAndReceiveSMS to WaitAndReceiveSMS without leaving a redirect) |
m (added Category:R2D2 using HotCat) |
||
Line 37: | Line 37: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:SMS]] | [[Category:SMS]] | ||
[[Category:R2D2]] |
Latest revision as of 11:33, 27 March 2025
This command waits until a SMS is received on the specified GSM port.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
WaitAndReceiveSms | PortIndex,[Timeout] | SMS origin number and text, in the case of error, Error Code |
OUTPUT
Command status in the following format:
"SMS RECEIVED from %s %s [%s]\n", origin_number, sms_text, sms_pdu
or
"SMS RECEIVED from MMS %s [%s]\n", sms_text, sms_pdu
"Incoming MMS from %s, Subject: %s, URL: [%s]", sender, subject, url
or
"%s\n", command_status
EXAMPLE
~# WaitAndReceiveSms 0 240
SMS RECEIVED from 0612345678 “Hello?”
[079162393EF216278DAED35287360CC8F71D14969741F977FD07]
~# WaitAndReceiveSms 0 240
TIMEOUT EXPIRED