# How serial port modify using HTTP protocol？

**URL:** <https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866>\
**Category:** General\
**Created:** [28 October 2021 07:37 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866 "2021-10-28T07:37:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfhzs](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yfhzs](https://discourse.nodered.org/u/yfhzs)\
**Post date:** [28 October 2021 07:37 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/1 "2021-10-28T07:37:40Z")

</div>

Hello everyone during the project implementation, the serial ports (COM1, com2,...) need to be configured using the HTTP interface, as shown in the figure.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd3dcaa1fdf8678f4e532ea98f37bac47b3b3939.png)

Are there any nodes available?

---

<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:** [28 October 2021 13:41 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/2 "2021-10-28T13:41:19Z")

</div>

I believe that the port cannot be changed without restarting or deploying node-red.

Though having said that can you explain what you mean by 'using the HTTP interface'.

---

<div class="post-metadata">

**Author:** ![yfhzs](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yfhzs](https://discourse.nodered.org/u/yfhzs)\
**Post date:** [28 October 2021 14:40 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/3 "2021-10-28T14:40:27Z")

</div>

Hi Colin the HTTP interface is only a way for the upper application to communicate with me. The serial port is set by passing JSON string through HTTP. Node red has an API, which should be able to realize the deployment problem you mentioned.

---

<div class="post-metadata">

**Author:** ![yfhzs](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yfhzs](https://discourse.nodered.org/u/yfhzs)\
**Post date:** [28 October 2021 14:43 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/4 "2021-10-28T14:43:42Z")

</div>

I'm also learning the node red API. I don't know how to use it yet.

---

<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:** [28 October 2021 15:15 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/5 "2021-10-28T15:15:44Z")

</div>

> [@yfhzs](#):
>
> the HTTP interface is only a way for the upper application to communicate with me.

What http interface and what is 'me' in that sentence.  
Do you mean that you want to change the setting that is stored in the flow and then use the admin api to deploy it? If so then you need to look at the api as you say.

---

<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 December 2021 15:16 UTC](https://discourse.nodered.org/t/how-serial-port-modify-using-http-protocol/52866/6 "2021-12-27T15:16:22Z")

</div>

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