-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Feature Request: TCP Keepalive in WiFiClientSecure #8939
Comments
WiFiClientSecure already implements this through the magic of C++ inheritance, no? The following snippet builds fine:
|
I test with your simple code and device crashed with this error in Serial monitor.
And this is the decoded stack trace.
I think WiFiClientSecure should provide the public functions to calling this private WiFiClientSecure context.
|
I have tested this before to make sure that we can't call I can call That is why I request this feature here for WiFiClientSecure. |
Hmm, could be an issue with object slicing. In any case, it looks like you have a solution in mind and a test case. Why not make a PR with the change? |
Ok, I will submit a PR for this. |
* Add support WiFiClientSecure TCP KeepAlive * Make TCP keepalive and related functions virtual. * Make TCP keepalive and related functions override. Fixes esp8266#8939
Basic Infos
Platform
Problem Description
The TCP Keepalive was already implemented in WiFiClient class but it was missing from WiFiClientSecure class.
Can you add support TCP Keepalive in WiFiClientSecure class?
Arduino/libraries/ESP8266WiFi/src/WiFiClient.cpp
Lines 417 to 440 in 57fa6cd
The text was updated successfully, but these errors were encountered: