Open bihmedical opened 5 years ago
Please only use the lines relevant to the POST request and comment out the GET request code. It also looks like you are trying to post twice, one right after the other.
I need to send multiple post requests as the data being sent is limited by 350 bytes. Is there any better way to post the data multiple times then?
Sorry for the late reply. There is one thing you could do to increase the size:
body[450]
or however large you need.sprintf(dataBuff, "AT+HTTPDATA=%d,10000", bodylen);
You can adjust the 10000 to something larger if needed, up to 120 seconds (120000ms).Thank you, I will give it a try and see if it works for our application.
I have attached the code here. I am using ESP32 with Botletics sim7000 sheild and got this sketch from ESP32_LTE_Demo example. Http get works seemlessly buy when I use only http post method it seems to work intermittently. And when i do get before post then the code seems to be working fine. For my use purposes I have to make post method to work. Any help or suggestion would be useful. Thank you
` // Post data to website via 2G or LTE CAT-M/NB-IoT float temperature = analogRead(A0) * 1.23; // Change this to suit your needs