In the publish-subscribe model of MQTT, which component receives messages from publishers and distributes them to subscribers?

Options

  • A. Broker
  • B. Sensor
  • C. Actuator
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Broker

Detailed Explanation

In MQTT, the broker acts as an intermediary. Publishers send messages to the broker on a topic, and the broker forwards those messages to subscribers interested in that topic.