File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
libraries/ESP8266WiFi/src Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,21 @@ class WiFiClientSecure : public WiFiClient {
357
357
358
358
// consume bytes after use (see peekBuffer)
359
359
virtual void peekConsume (size_t consume) override { return _ctx->peekConsume (consume); }
360
+
361
+ void keepAlive (uint16_t idle_sec = TCP_DEFAULT_KEEPALIVE_IDLE_SEC, uint16_t intv_sec = TCP_DEFAULT_KEEPALIVE_INTERVAL_SEC, uint8_t count = TCP_DEFAULT_KEEPALIVE_COUNT)
362
+ {
363
+ _ctx->keepAlive (idle_sec, intv_sec, count);
364
+ }
365
+
366
+ bool isKeepAliveEnabled () const { return _ctx->isKeepAliveEnabled (); };
367
+
368
+ uint16_t getKeepAliveIdle () const { return _ctx->getKeepAliveIdle (); };
369
+
370
+ uint16_t getKeepAliveInterval () const { return _ctx->getKeepAliveInterval (); };
371
+
372
+ uint8_t getKeepAliveCount () const { return _ctx->getKeepAliveCount (); };
373
+
374
+ void disableKeepAlive () { _ctx->disableKeepAlive (); };
360
375
361
376
private:
362
377
std::shared_ptr<WiFiClientSecureCtx> _ctx;
You can’t perform that action at this time.
0 commit comments