I am sending data to a server via an EG21 using AT+QHTTPPOST. Everything is successful - activating PDP, opening socket, setting URL destination etc, but when I attempt to send data with the command “AT+QHTTPPOST=631,15,15” and follow with a data block of the correct size, the EG21 responds with “+QHTTPPOST: 702”. I retry again until a successful response of “+QHTTPPOST: 0,200”.
What this results in is:
EG21
Data Packet 1
+QHTTPPOST: 702
+QHTTPPOST: 702
+QHTTPPOST: 0,200
Data Packet 2
+QHTTPPOST: 702
+QHTTPPOST: 702
+QHTTPPOST: 0,200
Server
Data Packet 1
Received x 3
Data Packet 2
Received x 3
Without fail there will be 2 timeouts and 1 successful.
I’ve tried re-activating the PDP context each time, resetting the GSM module each time, adding in a delay between each HTTPPOST, all with no success.
Is there anything I can do to fix this other than ignoring a 702 error and hoping for the best?