SetNetworkOptions#

This command is used to set persistent parameters affecting the network connection. The new parameter values will take effect only after a robot reboot.

Syntax#

SetNetworkOptions(n)

Arguments#

  • n: an integer ranging from 0 to 60 that defines the TCP keep-alive connection timeout in seconds, specifying how long the robot waits for client replies before terminating the connection; setting this value to 0 disables the keep-alive feature entirely, which may result in significantly delayed detection of connection failures.

Note

Instead of using the keep-alive timeout for detecting a lost connection, it is recommended to use ConnectionWatchdog which provide a much more reliable and precise way of detecting communication issues with the robot.

Default values#

This setting is persistent and retained after a power cycle (a reboot). It is restored to its factory default after a complete factory reset of the robot.

The factory default is 3.

Usage restrictions#

This command can only be executed when the robot is deactivated.

Cyclic protocols#

This command is not available in cyclic protocols.