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.
But when the data length is 184 characters or lesser then it works successfully
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.
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
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?
PS: The gsmSerial is running on a baud rate of 9600. And the limit is not enforced by my server. I have already tested the route with postman






Strings can make that error. I did a program with a SIM808 and ended up making a function to transfir char arrays instead of strings.
And I used it like this: