MQTT Q&A: MQTT Over UDP? How MQTT-SN Can Help.

Опубликовано: 10 Октябрь 2024
на канале: HiveMQ
5,329
51

Does MQTT work over UDP? The short answer to this question is: no. MQTT does not work with UDP.

Why does MQTT over UDP not work?
MQTT requires TCP and its underlying guarantees. These requirements make MQTT over UDP impossible.

However, there can be use cases with wireless sensor networks, where only UDP is an option. In this case, MQTT SN (MQTT for sensor networks) is a possible solution. MQTT SN is a different and less popular specification than MQTT. It is mostly used in open-source content. For professional use cases with internet connectivity available, MQTT will usually be preferred before MQTT SN.

👉 To learn about MQTT in detail, read our MQTT Essentials blog series: https://bit.ly/3gbfDTc

👉 We have a comprehensive 11-part video series about MQTT Essentials.
   • MQTT Essentials  

👉 We also explain the core of MQTT concepts, its features, and other essential information on the HiveMQ blog: https://bit.ly/3F7l2pm

👉 Get your own MQTT Essentials in a comprehensive, free E-Book: https://bit.ly/3D17jhJ

👉 To know about HiveMQ: https://bit.ly/3ooK4uc

Subscribe to our HiveMQ channel to get video updates. Hit the subscribe button above or subscribe to our newsletter (https://bit.ly/3os4nqr) to keep up to date on the latest MQTT news.

#MQTT #MQTTFAQs #IOT