Roles Founding Pro, Tactile Sensor Beta Testers
Full Name Matthew Bush
Job Title COO/Cofounder
Country US - United States
Company (optional) Hirebotics, LLC
i want to send the variable value through socket. but i cannot.
For example, a=10
instead of receiving move(10), i received move(a).
correct me if am wrong.April 11
matthewd92The reason is you are sending the string of “movej(a)”. The program does not know that you want to concatenate a variable inside that, you will need to tell it this.
Msg= str_cat(str_cat(“movej(“,a),”)”) #Msg would be “movej(10)” now
socket_send_string(Msg) #No quotes, we are sending the value of the variable Msg