socket_set_var(name, value, socket_name=’socket_0’)

Sends an integer to the server

Sends the message "SET <name> <value>\n" through the socket. Expects no response.

Parameters

name: Variable name (string)

value: The number to send (int)

socket_name: Name of socket (string)

Example command: socket_set_var("POS_Y",2200,"socket_10")

Sends string: SET POS_Y 2200\n to socket_10

  • Example Parameters:
    • name = POS_Y -> name of variable
    • value = 2200
    • socket_name = socket_10