.
Starts a watchdog timer, requiring the client to communicate within that
period or be disconnected. It is recommended that keepAlive be used to
ensure that TCP/IP client connections get closed in the face of network
failures (or even just unplugging and plugging in network connections). If
the network goes down and the client attempts to communicate, the client
will get a timeout and disconnect, reconnecting once the network is
restored. The server, however, would normally have no way of knowing
that the client gave up on its first connection and reconnected, so server
network stack resources consumed over time. keepAlive solves this
problem.
You can disable the watchdog timer with an argument of zero. This
command applies to TCP/IP only, not to the serial port.
Kommentare zu diesen Handbüchern