Go Down

Topic: SIM800L - HTTP POST problem (Read 1 time) previous topic - next topic

pedrolopes91

Hello,

I've been able to make a HTTP post though gprs with SIM800L, however, i've been only able to do it by manually input the commands on the serial monitor.
Code: [Select]

AT+SAPBR=3,1,"Contype","GPRS"

AT+SAPBR=3,1,"APN","net2.vodafone.pt"

AT+SAPBR=1,1

AT+HTTPINIT

AT+HTTPPARA="CID",1

AT+HTTPPARA="URL",myURL
AT+HTTPSSL=0
AT+HTTPPARA="CONTENT","application/x-www-form-urlencoded"
AT+HTTPDATA=110,10000


my message

AT+HTTPACTION=1
AT+HTTPREAD
AT+HTTPTERM
AT+SAPBR=0,1


However, when I try to do it by code, i get an OK for every command, but HTTPACTION fails to work, by returning:
"+HTTPACTION: 1,601,0"

I've triend different libraries, with codes such as "sendCmdAndWaitForResp" and already tried directly with serial.write(command).

I'm totally out of ideas.

Regards,

dannable

'+HTTPACTION: 1,601,0' means network error. Have you tried all the possible solutions to be found on Google?

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

pedrolopes91

Yes, the strange thing is that i am able by inputting manually the commands on the serial monitor. When I try to code the commands everything works untill the actual posting.

Go Up