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

Fix bug #17

Open
28598519a opened this issue Sep 30, 2024 · 1 comment
Open

Fix bug #17

28598519a opened this issue Sep 30, 2024 · 1 comment

Comments

@28598519a
Copy link

}while(line.length() == 0);

To avoid stuck in the loop, if losing connection here, replace
}while(line.length() == 0); to }while(line.length() == 0 && connected());

client->setContentTypeHeader("application/json");

For esp8266 v2.4.2 upper library, add
client->setInsecure();

Copy link

Welcome to HTTPSRedirect! Please provide enough info to debug the issue.

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

1 participant