-
Notifications
You must be signed in to change notification settings - Fork 33
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
cant read stream returned by postURI #5
Comments
hmm , I will look into it |
oops, if forgot to mention that it will work for a very limited number of pages (3 to 6 or so) then the Arduino appears to reset. |
hmm, that sounds like a memory leak. Are you sure that you have released all streams after using them? |
Yes, see the code below: I call the subroutine below with a line like this: void postmsg(char * message, char * path) http_client_parameter headers[] = { |
if I uncomment the section that reads the servers response, it crashes the Arduino Mega 2560. I'd really like to be able to read the page returned by the server.
my code:
HTTPClient hclient(serverName,(uint8_t )uint8_serverIP);
f1=hclient.postURI(urlbuf, NULL, databuf, headers );
/
char cc;
while((cc = fgetc(f1)) != EOF)
{
Serial.print(cc);
}
*/
int retcode=hclient.getLastReturnCode();
The text was updated successfully, but these errors were encountered: