Working with MQTT
MQTT implements publish-subscribe machine-to-machine (M2M) communications in a lightweight manner. This makes it possible to communicate over limited bandwidth. It implements a broker, which you can think of as a stand-in for the post office. Brokers have topics, and endpoints publish messages into these topics. Other endpoints then subscribe to these topics and are notified when new messages are published.
MQTT brokers make it possible for IoT devices to communicate without knowing their addresses using topics. They also keep track of which clients are connected to the network using a keep-alive messaging system. MQTT has three key benefits:
- Efficiency: The implementation uses the least amount of energy and data to send messages across
- Reliability: The implementation has various quality-of-service levels that determine how messages are stored by the broker and either sent to clients or received by clients
- Flexibility: The implementation lets developers...