WaitAndReceiveSMS

From Ultiroam User Docs
Revision as of 21:36, 26 March 2025 by Administrator (talk | contribs) (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: [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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