Skip to main content

custom_control_cmd

Ask the workers to reply with a and b.

def custom_control_cmd(
state: object,
a: int,
b: int
) - > dict

Ask the workers to reply with a and b.

Parameters

NameTypeDescription
stateobjectThe current state object of the control system
aintThe first integer value to be sent to and echoed back by the workers
bintThe second integer value to be sent to and echoed back by the workers

Returns

TypeDescription
dictA dictionary containing an 'ok' key with a confirmation message including the received integer values