Hello,
I am using an Arduino MEGA 2560 with GSM 5100b. My main goal is to make a POST request through TCP/IP. So far I have established a socket connection with the remote host but am unable to make a POST request. My code is the following:
AT+CGATT?
AT+CGDCONT=1,"IP","epc.tmobile.com"
AT+CGPCO=0,"","", 1
AT+CGACT=1,1
AT+SDATACONF=1,"TCP","136.145.34.23",8080
AT+SDATASTART=1,1
AT+SDATASTATUS=1
AT+SSTRSEND=1,"POST /Capstone/TesterGSM HTTP/1.0"
AT+SDATASTATUS=1
My output is the following:
+SIND: 1
+SIND: 10,“SM”,1,“FD”,1,“LD”,1,“MC”,1,“RC”,1,“ME”,1
+SIND: 11
+SIND: 3
+SIND: 4
+CGATT: 1
OK
OK
OK
OK
OK
OK
+SOCKSTATUS: 1,1,0102,0,0,0
OK
OK
+SOCKSTATUS: 1,1,0102,33,33,0
OK
+STCPC:1
Can someone tell me what I am doing wrong ? Please I need to resolve this as soon as possible.