Question: why mqtt is used in iot?
Answer: MQTT ensures that messages go to the correct devices during communication by utilizing topics. A topic functions the same as a file path would, and directs communication by filtering messages according to elements specified in the topic function.