Skip to content

setup function is executed many times #11

Description

@fdo36

If I put the next line: client.closeStream(result);, the "setup" function is executed many times!... and when I don't close the stream (I mean, when I don't put that piece of code), setup goes fine... but a few minutes more, I cannot connect with the server.

here is my code:

FILE* result = client.postURI(uri, NULL, data, header );
//int returnCode = client.getLastReturnCode();
if (result != NULL) {
client.closeStream(result); // <--- that line is the problem.
Serial.println("sent");
}

that code is in the loop function.

Hope can help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions