# I need MQTT node that have input and output

**URL:** <https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451>\
**Category:** General\
**Created:** [17 June 2020 06:33 UTC](https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451 "2020-06-17T06:33:01Z")\
**Posts on this page:** 2\
**Page:** 3

<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:** [23 June 2020 22:37 UTC](https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451/41 "2020-06-23T22:37:28Z")

</div>

@Edo78 In the post you are replying to, Denis highlights he has plenty of experience with MQTT. And we have discussed the alternative patterns in this thread, such as this post

> [@I need MQTT node that have input and output](https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451/22):
>
> MQTT is not a request/response type of protocol. There is no way for an MQTT client to ask the broker for just one message from a topic. If the client wants to do that, it has to subscribe to the topic, wait until a message arrives and then unsubscribe. But nothing would stop the broker from sending 30 messages before the unsubscribe arrives and is processed. So the more general pattern to use would be, as has been suggested, an MQTT In node subscribed to the topic you are interested in, saving…

Given the discussion ended a few days ago, we don't need to reopen.

---

<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 July 2020 22:37 UTC](https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451/42 "2020-07-07T22:37:42Z")

</div>

Closed on 7 July 2020 22:37 UTC

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

[Previous page](https://discourse.nodered.org/t/i-need-mqtt-node-that-have-input-and-output/28451.md?page=2)
