WaitAndReceiveSMS

From Ultiroam User Docs
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