I'm trying to do some HTTP posts using the Telit CE910 module and have not been able to get it to work at this point. I'm always getting an "ERROR" after I send the HTTPSND command.
Does anyone have the exact sequence of commands I need to send to set everything up to do the posts?
I'm always getting an "ERROR" after I send the HTTPSND command.
Using what code?
AT+CREG? // wait until 0,1 or 0,5
AT#ADC=1,2
AT+CSQ
AT#CAI?
AT#HTTPCFG=1,"posttestserver.com",80,0
AT#HTTPSND=1,0,"/post.php",99 // get "ERROR"
dapeters:
AT+CREG? // wait until 0,1 or 0,5
AT#ADC=1,2
AT+CSQ
AT#CAI?
AT#HTTPCFG=1,"posttestserver.com",80,0
AT#HTTPSND=1,0,"/post.php",99 // get "ERROR"
That does NOT look like code. IIRC, the HTTPSND string is supposed to contain the server name and protocol, just like you'd enter in a browser.
Why do you think you need to use POST? GET is so much simpler.
I figured it out. I had to add a: AT#SGACT=1,1 prior to the HTTPCFG command.