Properties (MQTTv5) are probably one of the most important additions to the MQTT protocol, and are available in most MQTT message types including acknowledgement messages.
The property fields are dependent upon message type, so a CONNECT message will have different property fields than a PUBLISH message.
I have listed the property fields for each message type with links to the online documentation describing the filed and its use.
The user property field is part of the properties field but it’s contents are determined by the user and not defined in the specification. You can find more about it in the Understanding User properties field tutorial.
Connect and Connack
The Table Below show the property fields available for the Connect and Connection acknowledge messages with links to the online documentation for the field description:
DisConnect
The Table Below show the property fields available for the Disconnect and Disconnect acknowledge messages with links to the online documentation for the field description:
Disconnect Message |
Disconnect Ack Message |
3.14.2.2.2 Session Expiry Interval
|
Publish And PUBACK
The Table Below show the property fields available for the Publish and Publish acknowledge messages with links to the online documentation for the field description:
Publish Message |
PUBACK Message |
3.3.2.3.2 Payload Format Indicator
3.3.2.3.3 Message Expiry Interval` |
3.4.2.2.2 Reason String |
Subscribe And SUBACK
The Table Below show the property fields available for the Subscribe and Subscribe acknowledge messages with links to the online documentation for the field description:
Subscribe Message |
SUBACK Message |
3.8.2.1.2 Subscription Identifier | 3.9.2.1.2 Reason String
|
Un-Subscribe And UNSUBACK
The Table Below show the property fields available for the Subscribe and Subscribe acknowledge messages with links to the online documentation for the field description:
Un-Subscribe Message |
UNSUBACK Message |
3.8.2.1.2 Subscription Identifier | 3.9.2.1.2 Reason String
|
Resources
Related Tutorials
- MQTTv5 Shared Subscriptions
- MQTTv5 Topics and Topic Aliases
- Examining MQTTv5 User Properties
- MQTT Client and Mosquitto Broker Message Restrictions With Examples
- MQTTv5 CONNECT and CONNACK Messages -Overview
- Understanding And Using MQTT v5 Request Response
- MQTT v 5.0 New Features Overview
- MQTTv5 Clean Start (Clean Sessions) and Session Expiry