-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum response of GET request only 128 bytes? #11
Comments
Hi!
Thanks for your feedback :) |
Thanks very much. It works great now! |
Hello guys! i want to use this library first for get request but i'm getting an empty response and don't know the reason why the response that i'm getting on the terminal are the following AT OK +CREG: 0,1 OK OK OK +SAPBR: 1,3,"0.0.0.0" OK OK +SAPBR: 1,1,"10.20.220.146" OK OK OK OK OK OK OK AT+SAPBR=0,1 +HTTPACTION: 0,601,0 OK would anyone help on this issue?? |
I'm using arduino nano, and GSM sim 800L, the mini RED colored module. |
Hi!
Do you have PIN in your SIM card?
Are you using a LiPo battery?
…On Fri 7 Sep 2018, 7:26 p.m. Musigwa Pacifique ***@***.***> wrote:
I'm using arduino nano, and GSM sim 800L, the mini RED colored module.
My server returns the 200 for successful get request at first and returns
304 for the next requests.
and it accept json data as it is a node server
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AENiuOABfcOUW8ZLLth2K3wWwxGyDwOcks5uYqxXgaJpZM4SlYYS>
.
|
Firstly thanks a lot for your library. I modified it slightly to use HardwareSerial on my ESP32 and it works very well for post requests. I just had to couple of observations:
My API endpoint returns a 201 (Created) for a successful new POST request. I think many API's do that. The current library does not detect this and expects a 200, and returns an error. I manually changed this in the post() function and now POST works perfectly.
The get() function creates a "Stack smashing protect failure!" fault on my ESP32 and crashes it. I think it has something to do with the buffer size in the readResponse() method being only 128 bytes. My GET response is about 600 bytes. Is there any reason why the buffer is so small? Is it safe for me to increase it, or is there any other associated problem I should be careful of?
Thanks!
The text was updated successfully, but these errors were encountered: