GetUSSDResponse
Jump to navigation
Jump to search
This command gets response from the existing USSD session on the specified GSM port. Command waits until USSD response is received or optional timeout (entered in seconds) expired or general timeout expired. Response text is displayed as GSM7 or UCS2 coded string. In the case of UCS2 coding each character is displayed as 2 hexadecimal digits.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
GetUSSDResponse | PortIndex, [Timeout] | USSD response string |
OUTPUT
USSD response string in the following format:
"Action: %d\nData coding: %d\n(GSM7|HEX|UCS2):%s\n", action, data_coding, ussd_response
EXAMPLE
~# GetUSSDResponse 0 30
Action: 1
Data coding: 15
GSM7:Choose option:
1. Tariffs
2. Info