Skip to content
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

sendHttpRequest Url length #6

Open
kortos opened this issue Apr 19, 2019 · 1 comment
Open

sendHttpRequest Url length #6

kortos opened this issue Apr 19, 2019 · 1 comment

Comments

@kortos
Copy link

kortos commented Apr 19, 2019

Hi,
i try to use your library for a small gps project. I call the sendHttpRequest with the following example url:

http://mydomain.net/api/InsertData.php?id=at1&lat=0&long=0&orga=test&plattform=arduino&version=1.0&capacity=100

The request doesn't work because of an truncated url. I think it's an timing problem. Can you fix it?

Regards,
Matthias

@jurisliepins
Copy link
Owner

Hey, the url seems to be short enough to fit into the buffer, which is hardcoded to be 200 bytes long. Try playing with the buffer timeout values in this file.

core->writeCommand("AT+HTTPPARA=\"CID\",1", "OK", 2000); on line 53 - changing '2000' to a larger value might help.

Making the url shorter should improve the performance. This is more of a hardware issue, not something that can be fixed in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants