matthewd92 Handy

Username matthewd92
Joined
Visits 1,598
Last Active
Roles Founding Pro, Tactile Sensor Beta Testers
Points 1,600
Invited bySamuel_Bouchard
Posts
800
Badges
20
Full Name Matthew Bush
Job Title COO/Cofounder
Industry Automation
Country US - United States
Company (optional) Hirebotics, LLC

Activity

  • matthewd92 earned the 100 Answers badge.
    Admit it, you read Wikipedia in your spare time.
    April 11
  • Prasanna
    Hi,

    i want to send the variable value through socket. but i cannot.
    For example, a=10
    socket_send_string("move(a)")

    instead of receiving move(10), i received move(a).

    correct me if am wrong.
    April 11
    • matthewd92
      matthewd92
      The 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.

      a=10
      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

      Make sense?