# I am a new user of node red, i need help

**URL:** <https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876>\
**Category:** General\
**Created:** [11 October 2018 06:30 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876 "2018-10-11T06:30:49Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jlearning](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Jlearning](https://discourse.nodered.org/u/Jlearning)\
**Post date:** [11 October 2018 11:09 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876/21 "2018-10-11T11:09:29Z")

</div>

i am using Ri3 with a ble dongle to receive connections from the peripherals.

---

<div class="post-metadata">

**Author:** ![Jlearning](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Jlearning](https://discourse.nodered.org/u/Jlearning)\
**Post date:** [11 October 2018 11:14 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876/22 "2018-10-11T11:14:49Z")

</div>

i have tested my dongle using nrf connect to send data and my computer's terminal to receive the data and send back the response, worked fine.  
i used UART port from Pi3 to test the control of the device, worked fine as well.  
now i connect the dongle to the device and want to send data via BLE to control it, and i am stacked

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [11 October 2018 12:59 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876/23 "2018-10-11T12:59:30Z")

</div>

> [@ukmoose](#):
>
> OK so your function contains
> 
> ```auto
> var data = new Buffer([0x006, 0x004, 0x80, 0x000, 0x001, 0x83]);
> msg.payload = data.toString('hex');
> 
> return msg;
> 
> ```

I suspect the problem is that you are sending an ascii string (of hex characters). Have you tried just setting the payload to the raw buffer data?

```auto
msg.payload = new Buffer([0x006, 0x004, 0x80, 0x000, 0x001, 0x83]);
return msg;

```

Of course, if you just want to send a test buffer the `inject` node can do that more easily than writing javascript code in a `function` node...

---

<div class="post-metadata">

**Author:** ![hungtv](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@hungtv](https://discourse.nodered.org/u/hungtv)\
**Post date:** [15 October 2018 09:53 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876/24 "2018-10-15T09:53:20Z")

</div>

hello zenofmud!  
I need your help on node-red.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 October 2018 10:11 UTC](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876/25 "2018-10-15T10:11:07Z")

</div>

@hungtv Please do not spam threads. If you have a question to ask, please start a new topic of your own with your question.

[Previous page](https://discourse.nodered.org/t/i-am-a-new-user-of-node-red-i-need-help/3876.md?page=1)
