pylabrobot.brooks.precise_flex.PreciseFlexDriver.attach#

async PreciseFlexDriver.attach(attach_state: int | None = None) → int#

Attach or release the robot, or get attachment state.

Parameters:

attach_state (int | None) – If omitted, returns the attachment state. 0 = release the robot; 1 = attach the robot.

Returns:

If attach_state is omitted, the number of the robot attached (1 on a single-robot controller), or 0 if none is. Otherwise 0 on success.

Return type:

int

Note

The robot must be attached to allow motion commands.