
The GSM command makes is possible to submit AT- and USSD requests to the integrated GSM modem. GSM requires two arguments, a string (the request) and a string variable that receives the answer.
outmode -2
let b$ = ""
gsm "*101#", b$
if LASTERR = 0 then
print "'USSD *101# answered with: ";
print b$
else
print "USSD error !!!"
end if
let b$ = ""
gsm "AT+CPIN?", b$
if LASTERR = 0 then
print "'AT+CPIN? answered with: ";
print b$
else
print "AT Command error !!!"
end if
end
The GSM command distinguishes by the first character of the first argument if it should spawn an AT or USSD request. If this character is 'A' or 'a', then the string is interpreted as AT-command, otherwise as USSD request. LASTERR ist set to 12 (Rejected) if an error occured.
GSM is available on firmware version 5.06 and above. The module must have as GSM modem.