-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
WiFiClients.setConnectionTimeout added #8863
WiFiClients.setConnectionTimeout added #8863
Conversation
862dedf
to
fb1668e
Compare
Thanks for the PR @JAndrassy. This relates to #6676. @P-R-O-C-H-Y PTAL |
the difference is that #6676 doesn't define |
f5a93b1
to
49ea525
Compare
👋 Hello JAndrassy, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
after #6676 was merged WiFiClient.setConnectionTimeut now looks here like a new method, but it just the old setTimeout modified (same way this PR does for WiFiClientSecure) |
Please revert any changes to WiFiClientSecure. It will inherit those methods from WiFiClient. That was the point of the previous PR that we merged. |
@P-R-O-C-H-Y PTAL if this makes sense now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@me-no-dev @JAndrassy please take a look on my comment, if it makes sense to you as well.
ce0b2a6
to
181e546
Compare
181e546
to
45abe3d
Compare
so at the end it is just a simple setter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just simple like that :) side question: Arduino API seems to be unit16_t, should we align or better will be to go with uint32_t as @JAndrassy did.
@me-no-dev?
It isn't unthinkable someone wants to set it to >65 seconds. |
the uint32_t is a leftover from rename from |
What would be the interpretation of a negative timeout? |
WiFiClient::setTimeout
now shadowsStream::setTimeout
which has a different purpose and the unit of the parameter is different. Related issue.The solution is to renameWiFiClient::setTimeout
to Arduino standardWiFiClient::setConnectionTimeout
.EDIT: at the end most of this PR was done in #6676 and #8998
overview of Client API in Arduino networking libraries:
https://github.com/JAndrassy/Arduino-Networking-API/blob/main/ArduinoNetAPILibs.md#client-getters-and-setters