From e7e962b8d0a30646e58517b50a92ba87489343d1 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Tue, 24 Aug 2021 14:46:33 +0800 Subject: [PATCH] lwip:add function for deinit lwip timers --- components/esp_wifi/lib | 2 +- docs/en/api-guides/lwip.rst | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index db1c090f59..c9f08e68e3 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit db1c090f59826b1643903738eafa7b60c78468da +Subproject commit c9f08e68e38e9412f3f943778af1ba49bb27067d diff --git a/docs/en/api-guides/lwip.rst b/docs/en/api-guides/lwip.rst index 95791761a4..c5215a5b0e 100644 --- a/docs/en/api-guides/lwip.rst +++ b/docs/en/api-guides/lwip.rst @@ -306,6 +306,16 @@ The default lwIP implementation is to have these timers enabled all the time, ev To return to the default lwIP behaviour (always-on timers), disable :ref:`CONFIG_LWIP_TIMERS_ONDEMAND`. +Lwip timers API ++++++++++++++++ + +When users are not using WiFi, these APIs provide users with the ability to turn off LwIP timer to reduce power consumption. + +The following API functions are supported. For full details see :component_file:`lwip/lwip/src/include/lwip/timeouts.h`. + +- ``sys_timeouts_init()`` +- ``sys_timeouts_deinit()`` + Abort TCP connections when IP changes +++++++++++++++++++++++++++++++++++++