Hi Bharath here, trying to send a get method via sim7000e module. Details are as follows.
- Airtel 4G Sim Card
- Data Plan : Data : 3 GB ( 4G)
- Module registers to network (Confirmed with blink every 3 seconds)
Followed the steps:
AT+CPIN? AT+CSQ AT+COPS? AT+CGREG? AT+CGDCONT=1,"IP","airtelgprs.com" AT+CGDCONT? AT+CGATT=1 AT+CGATT? AT+CGACT=1,1 AT+CGPADDR=1 // gets a IP 1,100.115.29.79 AT+CGDCONT?
I get a IP attaching to a GPRS , 100.115.29.79 so everything is working well.
Now Im trying to get from a server. I following the steps
AT+SAPBR=3,1,"CONTYPE", "GPRS" AT+SAPBR=3,1,"APN", "airtelgprs.com" AT+SAPBR=3,1,"USER","" AT+SAPBR=3,1,"PWD","" AT+SAPBR=1,1 AT+SAPBR=2,1 AT+CIPGSMLOC=1,1 AT+HTTPINIT AT+HTTPPARA="CID",1 AT+HTTPPARA="URL","api.thingspeak.com/channels/119922/feeds/last.txt" AT+HTTPACTION=0 AT+HTTPREAD
now my response is as follows
+HTTPACTION: 0,302,150 AT+HTTPREAD +HTTPREAD: 150 <html><head><title>302 Found</title></head><body><h1>302 Found</h1><p>The document has moved <a href="http://u.airtel.in/1">here</a></p></body></html>
Now no matter what i do i always get this 302 Header response with the same body.I believe there is a setting or steps missing?
Can you throw some light on it?