MQTT Topic Best Practices MQTT Essentials Part 6
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=juq_l70Vg1w
In this episode of MQTT Essentials series, we will focus on MQTT topics and best practices. • ** Overview ** • MQTT Topics are used in publish packets as well as subscribe packets to help the broker determine where data packets should be routed to. In MQTT Topic refers to an UTF8-String that the broker uses to filter messages for each connected client. The broker uses topics to filter messages for each connected client. A topic consists of one or more levels. Each topic level is separated by a forward slash (topic level separator). In comparison to a message queue, MQTT topics are very lightweight. Note that each topic must contain at least 1 character and that the topic string permits empty spaces. Topics are case-sensitive. • 👉 Wildcards: • wildcard (single-level) - a single-level wildcard replaces one topic level. The plus symbol represents a single-level wildcard in a topic. Any topic matches a topic with a single-level wildcard if it contains an arbitrary string instead of the wildcard. • wildcard (multi-level) - a multi-level wildcard covers many topic levels. The hash symbol represents the multi-level wild card in the topic. When a client subscribes to a topic with a multi-level wildcard, it receives all messages of a topic that begins with the pattern before the wildcard character, no matter how long or deep the topic is. • 👉 Best practices: • never use a leading forward slash • never use spaces in a topic • use only ASCII characters, avoid non-printable characters • keep the topic short and concise • embed a unique identifier or the Client Id into the topic • don't subscribe to # • ** Chapters / Table of Contents ** • 00:00 Introduction to MQTT Topics and Best Practices • 00:18 MQTT Topics • 02:20 Wildcards in MQTT • 03:49 Best Practices of MQTT • 05:30 Announcing Part 7 - Quality of Service Levels in MQTT • 👉 If you missed Part 1 - What is MQTT, watch it now: • What is MQTT | MQTT Essentials Part 1 • 👉 Continue watching the MQTT Essential Series now: Part 7 - MQTT QOS - Quality of Service: • MQTT QoS - Quality of Service | MQTT ... • 👉 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 #MQTTEssentials #IoT #MQTTMonday
#############################
