Could be something simple the SocketTest does automatically that you need to replicate. First thing that comes to my mind is including a Line Feed (\n) or carriage return character (\r) or possibly both at the end of your command.
I wouldn’t think so. Localhost is just an IP address saying “this device” and should be irrespective of subnet mask. That said, you could certainly try putting the actual IP address of the robot in there and see if anything changes, or put in the IP address of the device. I tend to muddle my way through issues by just poking around long enough.
Hi,
Thank you for your replies.
Sending socket_send_byte(10) was the trick! Trying to send \n using ascii just made a string with those characters.
My next challenge is to retrieve the code and the message. I can use find_str() to get the position of code and message. Now I want to find out how many characters are between the " " after code. Is there a way to search for " using find_str()?
tor,
Use the find_str() to locate the message= “Success” text and subtract one from the other this will give you how many characters are between code and message.
you might have to play around a bit to get the correct values
find_str(src, code, 0) will give the location of the c not the e of code.