SIM800SIM900Http  
Suche: 

Kinder

Informatik und Computer

Elektronik

Segeln

Musik

Lego

Kochen

4x4 Wohnmobil

4x4 Wohnmobil V2.0

Bootsanhänger

Andere Basteleien

Linksammlung

Projekte

Merkzettel

Impressum


User
Password

SIM800/SIM900 HTTP-Call

## 
## Starting up. 
## 
## signalQuality() 
AT+CSQ
+CSQ: 16,0
OK
## checkNetworkRegistration() 
AT+CREG?
+CREG: 0,1
OK
## Check the avliable networks
AT+CGATT?

+CGATT: 1

OK

## Perform a GPRS Attach. The device should be attached to the GPRS network before a PDP context can be established
AT+CGATT=1

OK

## Change the connection type for profile 1 to GPRS 
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK

## Change the APN for profile 1 to "internet.com" (Rogers Canada, no password) 
AT+SAPBR=3,1,"APN","internet.telekom"

OK
## Opens GPRS connection using profile 1
AT+SAPBR=1,1

OK
## initializes embedded HTTP rutine
AT+HTTPINIT 

OK

## Set up the HTTP request. 
## I have disabled the GPS at this point. 
AT+HTTPPARA="URL","http://www.google.de"

OK

## Do the request 
AT+HTTPACTION=0

OK


## Interrupt-Callback from module: data received
+HTTPACTION:0,200,3


## Read the response. 
AT+HTTPREAD

{result of the request}

OK
## End the HTTP request. 
AT+HTTPTERM