py_msg()

Sends a message to a running Python script.

Syntax

py_msg(message, data)

Parameters

Parameter Type Description
message String The message or command to send to the Python script.
data Any The data to send along with the message.

Return Value

Examples

Send a message with data to a Python script

py_msg("update_status", "Running");

Send a numerical command

py_msg("set_speed", 1200);

Send a numerical command

py_msg("OpenCV", 0);

See also

read_message

py_list
py
py_term
py_msg