# How to write programme use javascirpt with continuous command

**URL:** <https://discourse.nodered.org/t/how-to-write-programme-use-javascirpt-with-continuous-command/24432>\
**Category:** Industrial\
**Created:** [8 April 2020 02:53 UTC](https://discourse.nodered.org/t/how-to-write-programme-use-javascirpt-with-continuous-command/24432 "2020-04-08T02:53:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhon](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Jhon](https://discourse.nodered.org/u/Jhon)\
**Post date:** [8 April 2020 02:53 UTC](https://discourse.nodered.org/t/how-to-write-programme-use-javascirpt-with-continuous-command/24432/1 "2020-04-08T02:53:44Z")

</div>

Hello

I am using TCP Request to send an receive the message to/ from anybus bolt.  
whatevey use telnet ,At command of anybus and putty,I can write multiline command then send them to the anybus bolt and receive correct data.

I want to know ,which string("\r\n","\n" is not ok) should i add between multiline command like picture.

Is the delay time used in the "TCP request" ?  
in order to get the string of 71 length,it need more than 200ms ,it is too long .  
→ send message :"AT_BGCRC=0,19,0\r\n"  
→receive message:  
AT_BGCRC=0,19,0  
\*BGCRC:00D50E8400018B69000400000000000037000000  
OK

circle time of timestamp is 200ms

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/30c1da37968acae219056f7d31e17ed087730b0b.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 June 2020 02:53 UTC](https://discourse.nodered.org/t/how-to-write-programme-use-javascirpt-with-continuous-command/24432/2 "2020-06-07T02:53:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
