WaitAndReceiveAllSms
Jump to navigation
Jump to search
This command waits until a SMS or MMS is received on the specified GSM port.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
WaitAndReceiveAllSms | 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
~# WaitAndReceiveAllSms 0 240
SMS RECEIVED from 0612345678 “How are you?” [07911326040000F0040B911346610089F60000208062917314080CC8F71D14969741F977FD07]
~ # WaitAndReceiveAllSms 0
SMS RECEIVED from MMS +381637380797 [07918361050090004406D0CDE61400F561401090346380550B05040B8423F00003A8020283687474703A2F2F3137322E31372E38362E352F6D6D732F776170656E633F6C6F636174696F6E3D3338313634363730353738325F636938692D303030313033267269643D30323200]
Incoming MMS from +381637380797/TYPE=PLMN, Subject: "", URL: [http://172.17.86.5/mms/wapenc?location=381646705782_ci8i-000103&rid=022]
~# WaitAndReceiveAllSms 0 240
TIMEOUT EXPIRED