WaitAndReceiveSMS: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with "This command waits until a SMS is received on the specified GSM port. '''COMMAND''' {| class="wikitable" !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: [...")
 
m (added Category:R2D2 using HotCat)
 
(2 intermediate revisions by the same user not shown)
Line 36: Line 36:
TIMEOUT EXPIRED
TIMEOUT EXPIRED
</syntaxhighlight>
</syntaxhighlight>
[[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