Skip to content

control_holder

Runs in the client Sends nothing to the robot

Return the client that holds control, or None. It reads the latest status the robot sent, and asks the robot nothing. The robot names a client by its address as it sees it, "ip:port". Control that has expired reads as None, as it does before the first status arrives after connecting.

Syntax

robot.control_holder()

Arguments

None.

Returns

str | None

The holder's "ip:port", or None when no client holds control.

Examples

robot.control_holder()

See also