I am working in a project with requires refresh time of ~5-10 seconds. Thus the system must send data to the server around this interval. I am using Arduino Mega 2560 with Elecrow SIM808 shield for this. However, using POST method currently costing me around ~20-25 seconds for just 32 bytes of data. Any suggestions on improving this process?
Workflow : AT+HTTPINIT → AT+HTTPPARA → AT+HTTPDATA → AT+HTTPACTION → AT+HTTPREAD → AT+HTTPTERM
P.S : I have vastly optimized the code. So no delay or unnecessary waiting is involved. Only the AT procedures is consuming time. Especially, in most of the cases, the result codes of HTTPACTION come after more than ~10 seconds.