# Endpoint from Modbus data

**URL:** <https://discourse.nodered.org/t/endpoint-from-modbus-data/45556>\
**Category:** General\
**Created:** [12 May 2021 17:11 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556 "2021-05-12T17:11:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xina](https://avatars.discourse-cdn.com/v4/letter/x/e47774/32.png) [@Xina](https://discourse.nodered.org/u/Xina)\
**Post date:** [12 May 2021 17:11 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/1 "2021-05-12T17:11:29Z")

</div>

How to make an endpoint with data from modbus using Modbus Flex Getter?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 May 2021 20:02 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/2 "2021-05-12T20:02:23Z")

</div>

Welcome to the forum @Xina

Assuming that you mean an http endpoint then the [Node red cookbook](https://cookbook.nodered.org/) has examples of how to do that.

Does that solve your problem? If not then describe in more detail which area you do not know how to do.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [13 May 2021 02:08 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/3 "2021-05-13T02:08:18Z")

</div>

The first thing to do is decide on what data you are getting from the Modbus node and which of it you want - put a debug node on the output and set it to complete message object - you should then be able to see what data is being received from the Node.

Once you have this post some screenshots and (as Colin has said) some more details on what you are trying to achieve ?

Craig

---

<div class="post-metadata">

**Author:** ![Xina](https://avatars.discourse-cdn.com/v4/letter/x/e47774/32.png) [@Xina](https://discourse.nodered.org/u/Xina)\
**Post date:** [13 May 2021 10:27 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/4 "2021-05-13T10:27:53Z")

</div>

Thank you for your interest @craigcurtin @Colin . I am just starting out using Node Red and I want to make an endpoint that will contain the data taken from Modbus simulator, more precisely payload or the responseBuffer data. I managed to take them over, but I don't know how to transfer them as Json. Http response node does not generate response. I don't know how I could verify if the data transfer is made correctly.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/62599e444e4dca1e1fca3bd911ff2142a117d0b8.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 May 2021 10:32 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/5 "2021-05-13T10:32:56Z")

</div>

The HTTP response node expects to receive the original msg (with all the special properties added by the HTTP in node - so it know how to reply).

I believe either the second output of the modbus node passes the original properties through or there is an option in the modbus node that enables passing the original message properties through.

---

<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:** [27 May 2021 10:33 UTC](https://discourse.nodered.org/t/endpoint-from-modbus-data/45556/6 "2021-05-27T10:33:02Z")

</div>

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