I intend to send some information through
GET method to a php page using the SIM900 module.
I tried the following sequence of commands with success.
AT+CSQ AT+CGATT? AT+SAPBR=3,1,"CONTYPE","GPRS" AT+SAPBR=3,1,"APN","internet" AT+SAPBR=1,1 AT+HTTPINIT AT+HTTPPARA="URL","www.my_URL.com/stuff.php?variable=TEST" AT+HTTPACTION=0 AT+HTTPREA
Note that my service provider doesn't require username & password for accessing, also "internet" is the name of the APN.
Afterwards, I wrote a program on the mbed, that sends this code to the module, then wait for a pre-determined amount of time, read the response and proceed.
I started getting an error specifically on the
AT+SAPBR=1,1 command. I tried the commands manually and now I always get the error on this command. This is the comand that opens the bearer.
What I have tried: On the
AT+SAPBR=? command, the second parameter is the bearer ID, so I tried using, for instance, 2 instead. And it works.
I find this very strange and I'm trying to figure out why '1' as ID keeps getting me stuck?