# MQTT-SN Support

**URL:** https://discourse.nodered.org/t/mqtt-sn-support/19753
**Category:** Feature Requests
**Created:** [30 December 2019 19:37 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753 "2019-12-30T19:37:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![zaher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zaher/32/14891_2.png) [@zaher](https://discourse.nodered.org/u/zaher)
#### Post date: [30 December 2019 19:37 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/1 "2019-12-30T19:37:47Z")

</div>

Does Node-RED have support for MQTT-SN? In a similar way to MQTT, it can have a publish and subscribe nodes, but might require a different broker because I think the popular Mosquitto broker doesn't support MQTT-SN.

---

<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: [30 December 2019 20:05 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/2 "2019-12-30T20:05:49Z")

</div>

I'm not aware of a JavaScript implementation of SN.

---

<div class="post-metadata">

### Author: ![zaher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zaher/32/14891_2.png) [@zaher](https://discourse.nodered.org/u/zaher)
#### Post date: [30 December 2019 20:12 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/3 "2019-12-30T20:12:19Z")

</div>

There are a few packages: [https://www.npmjs.com/search?q=mqtt-sn](https://www.npmjs.com/search?q=mqtt-sn)

---

<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: [30 December 2019 20:36 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/4 "2019-12-30T20:36:05Z")

</div>

So someone could create a node that wraps one of those modules, assuming any of them are complete and stable implementations. No reason it has to be in the core.

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [30 December 2019 21:43 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/5 "2019-12-30T21:43:43Z")

</div>

That was new to me even it is quite old - thank you for the info.  
As I read the docs it is designed more to sit in between the sensor node and the broker or integrated into the broker as for a connection between Node-RED and the broker. But the UDP-Protocol short topics and payload QoS -1 all sounds perfect for small micos to keep awake time and traffic as low as possible.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [30 December 2019 21:56 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/6 "2019-12-30T21:56:24Z")

</div>

Yes I must admit I have implemented MQTT-SN several times (initially in a few lines of perl anyone ?) - only to do the udp QoS -1 as a broadcast so I didn't need to know about a local broker address at all - so it could be fixed in arduino flash.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [30 December 2019 22:45 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/7 "2019-12-30T22:45:02Z")

</div>

> [@Christian-Me](#):
>
> That was new to me even it is quite old

Me too, but it seems to be [currently on the OASIS agenda](https://www.oasis-open.org/committees/document.php?document_id=66091&wg_abbrev=mqtt).

---

<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: [31 December 2019 00:32 UTC](https://discourse.nodered.org/t/mqtt-sn-support/19753/8 "2019-12-31T00:32:23Z")

</div>

Indeed, I played with MQTT-SN when it was merely a research paper from our colleagues in Zurich. I did do a C implementation once for a Japanese smart metering project, but that's a story for another day.

Very pleased to see it arrive at OASIS and begin its path to proper standardisation.
