|
|
|
|
|
- Overview
- Implementation
- How to?
- Quality of service (QoS)
Management of MQTT (prefix syntax)
MQTT is a "publish-subscribe" messaging protocol based on the TCP/IP protocol. From version 3.1.1, MQTT is an OASIS standard. Two elements are found in MQTT: - the client, who publishes messages and who can subscribe to them.
- the broker ("server") that receives the publications from clients, that processes them and that sends them to the clients who subscribed.
Several MQTT brokers are available (ActiveMQ, JoramMQ, OW2 JORAM, Mosquitto, RabbitMQ) as well as iOT servers compatible with MQTT (Amazon iOT, Azure iOT, etc.). WINDEV, WEBDEV and WINDEV Mobile allow you to manage an MQTT client: you can publish and subscribe to publications. Quality of service (QoS) When publishing a message, the client defines the requested quality: - QoS level 0 message "At most once": The message will be delivered at most once.. The message is not stored. It is sent without guarantee of receipt. The MQTT (broker) does not inform the sender that the message was received. The message can be lost if the client is disconnected or if the server is stopped.
- QoS level 1 message "At least once": The message will be delivered at least once.. The client will transmit the message several times if necessary until the server (broker) confirms that the message was transmitted on the network.
- QoS level 2 message "Exactly once": The message must be saved by the sender.. It will be transmitted as long as the receiver does not confirm its sending on the network. The issuer uses a sophisticated recognition with the server (broker) to avoid duplicating messages. This mode is slower but it is more secure.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|