MQTT Message Queue Telemetry Transport origine
storica, non piu' adottata.
No queues, in spite of the name. Trasporta di tutto, non solo telemetria.
Per fissare le idee, consideriamo la situazione concreta
MQTT, sistema informatico, cerca di soddisfare tali esigenze.
"MQTT" nel parlato comune puo' riferirisi a molte cose, e quindi essere sorgente
di confusione, specialmente per i principianti.
costituito da
A user of a MQTT-server can both produce and receive data
by both
publishing and subscribing,
being both a client-publisher and a client-subscriber.
es: a sensor can publish sensor data and subscribe the configuration
information or control commands.
Note: The original term was "broker" but it has now been standardized as "server" ( 2020); you will see both terms used. ref: http://www.steves-internet-guide.com/mqtt/
MQTT communication protocol for messages.
This specification is split into seven chapters:
Network Connection
A construct provided by the underlying transport protocol that is being used by MQTT.
For examples see Section 4.2.
Application Message
The data carried by the MQTT protocol across the network for the application.
When Application Messages are transported by MQTT they have an associated
Quality of Service and a Topic Name.
Client
A program or device that uses MQTT. A Client always establishes the Network Connection to the Server. It can
Server
A program or device that acts as an intermediary between
A Server
Subscription
Topic Name
The label attached to an Application Message which is matched against the Subscriptions known to the Server.
The Server sends a copy of the Application Message to each Client that has a matching Subscription.
Topic Filter
An expression contained in a Subscription, to indicate an interest in one or more topics. A Topic Filter can include wildcard characters.
Session
A stateful interaction between a Client and a Server.
Some Sessions last only as long as the Network Connection, others can span multiple consecutive Network Connections between a Client and a Server.
MQTT Control Packet
A packet of information that is sent across the Network Connection.
The MQTT specification defines 14 different types of Control Packet, one of which (the PUBLISH packet) is used to convey Application Messages.
Integer data values are 16 bits in big-endian order: the high order byte precedes the lower order byte. This means that a 16-bit word is presented on the network as Most Significant Byte (MSB), followed by Least Significant Byte (LSB).
After a Network Connection is established by a Client to a Server, the first Packet sent from the Client to the Server MUST be a CONNECT Packet.
TCP Transfer Control Protocol.
message broker (aka integration broker or interface engine) wp
a sw-program that translates a message
wp/Zigbee
www.steves-internet-guide.com/mqtt-works/
www.hivemq.com/blog/mqtt-essentials-part-1-introducing-mqtt/
Message middleware, Message-oriented middleware
SW che permette una piu' facile comunicazione tra senders and receivers
quindi senders e receivers non comunicano direttamente,
bensi' comunicano col SW di intermediazione.
Tale SW e' reso disponibile nel cloud come "software as a service", tutti devono iscriversi, eventualmente pagare, il servizio.
Come architettura SW esistono 2 sistemi elementari
rob: lo stesso breve nome viene usato per i 2 aspetti: sw-pattern, sw-service, cioe' per l'aspetto di tecnica sw e l'aspetto commerciale; puo' confondere i principianti.
I SW reali (anno 2022) sono spesso piu' articolati.
Vantaggl: greater network scalability; more dynamic network topology
Svantaggi: decreased flexibilitfy to modify the publisher and the structure of the published data.
publish–subscribe pattern