ethanhe
Newbie level 2
Hello everyone,
I want to send data from SIM900 module to a webserver, but now I am confused about the TCP and HTTP AT command of SIM900. I don't know which way is the correct.
If I use TCP method, then to establish a TCP connection, AT+CIPSTART="TCP","XX.XX.XX.XX","6789" is enough, then by AT+CIPSEND, you can send a message to a TCP server.
On the other hand, if you use HTTP POST method, for example,
AT+HTTPPARA="URL","www.simcom.com"
AT+HTTPDATA=100,10000
AT+HTTPACTION=1
My question is what the difference between these two methods? Both can send data to a web server, right?
Thanks for your replies.
I want to send data from SIM900 module to a webserver, but now I am confused about the TCP and HTTP AT command of SIM900. I don't know which way is the correct.
If I use TCP method, then to establish a TCP connection, AT+CIPSTART="TCP","XX.XX.XX.XX","6789" is enough, then by AT+CIPSEND, you can send a message to a TCP server.
On the other hand, if you use HTTP POST method, for example,
AT+HTTPPARA="URL","www.simcom.com"
AT+HTTPDATA=100,10000
AT+HTTPACTION=1
My question is what the difference between these two methods? Both can send data to a web server, right?
Thanks for your replies.