# Socket\_send quotation marks

**URL:** <https://forum.universal-robots.com/t/socket-send-quotation-marks/30362>\
**Category:** URScript\
**Created:** [September 11, 2023, 5:26pm UTC](https://forum.universal-robots.com/t/socket-send-quotation-marks/30362 "2023-09-11T17:26:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattias.persson](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mattias.persson](https://forum.universal-robots.com/u/mattias.persson)\
**Post date:** [September 11, 2023, 5:26pm UTC](https://forum.universal-robots.com/t/socket-send-quotation-marks/30362/1 "2023-09-11T17:26:19Z")

</div>

I’m facing a problem with an integration to an instrument, we use to integrate this way:

Socket\_Connect=socket\_open(“192.168.2.175”,50012)

```
socket_send_string("<command name=")
socket_send_byte(34)
socket_send_string("AssumeControl")
socket_send_byte(34)
socket_send_string(" />")
socket_send_byte(10)

data=socket_read_string()
code_pos=str_find(data,"code")
code_str=str_at(data,code_pos+6)
code_num=to_num(code_str)

socket_close()

```

With the string:  
  
Sent as above with a newline in the end.  
Now the integration seems not to accept to get the TCP packets sent in pieces. I would like to find a way to concatenate a string with double quotation marks inside and send i all in one go.

Is there a way?  
I can only find the above as being supported and it feels strange that you can’t escape an "

Very happy for all help I can get in this matter

---

<div class="post-metadata">

**Author:** ![mattias.persson](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mattias.persson](https://forum.universal-robots.com/u/mattias.persson)\
**Post date:** [September 12, 2023, 6:43am UTC](https://forum.universal-robots.com/t/socket-send-quotation-marks/30362/2 "2023-09-12T06:43:14Z")

</div>

Seems like the forum has the same problem 😂  
My string in the post is not showing Trying again here to quote it:  
command name=“AssumeControl” /\>
