examples: Make tcp_server example support tcp keepalive function

This commit is contained in:
yuanjm
2021-02-03 11:27:06 +08:00
committed by bot
parent fd34406960
commit 94e3141a32
3 changed files with 36 additions and 1 deletions

View File

@@ -46,6 +46,12 @@ Set following parameters under Example Configuration Options:
* Set `Port` number of the socket, that server example will create.
* Set `TCP keep-alive idle time(s)` value of TCP keep alive idle time. This time is the time between the last data transmission.
* Set `TCP keep-alive interval time(s)` value of TCP keep alive interval time. This time is the interval time of keepalive probe packets.
* Set `TCP keep-alive packet retry send counts` value of TCP keep alive packet retry send counts. This is the number of retries of the keepalive probe packet.
Configure Wi-Fi or Ethernet under "Example Connection Configuration" menu. See "Establishing Wi-Fi or Ethernet Connection" section in [examples/protocols/README.md](../../README.md) for more details.
## Build and Flash