Sim900a post request does not work for data that is more than 185 characters long

I am using sim900a GSM module to make a post request to my server.
When I send 185 characters long data then an error is thrown.
185_bytes

But when the data length is 184 characters or lesser then it works successfully
184_bytes

I have tested multiple times to verify this and every single time if the data length is 185 characters or more then the data is not sent but if it is lesser than 185 then it works.

runCmd
This code runs AT commands on my gsm module


This function makes post request to my server using AT commands.


And from here I am calling the "makePostRequest" function

at_datasheet
According to the data sheet of AT commands, we can see that the max size on the httpdata is 1,02,400 bytes. So why does my request fail with just 185 characters?

Never post code as images!

Post complete code, experience shows that the error is most often in that part of the code people are hiding from us.

What does

AT+HttPDATA=?

return?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.