Module v4

Module v4 

Source
Expand description

§MQTT v3.1.1 Implementation

Implementation of MQTT 3.1.1 (OASIS Standard, most widely deployed version).

§Differences from v3.1

  • Enhanced error handling with specific return codes
  • Improved session management with persistent sessions
  • Standardized protocol name and version identification
  • Clarified specification semantics and edge cases

Structs§

ConnAck
Represents an MQTT ConnAck packet.
Connect
Represents an MQTT Connect packet
Disconnect
Represents an MQTT Disconnect packet.
PingReq
Represents an MQTT PingReq packet.
PingResp
Represents an MQTT PingResp packet.
PubAck
Represents the packet ID PubAck packet
PubComp
Represents the packet ID PubComp packet
PubRec
Represents the packet ID PubRec packet
PubRel
Represents the packet ID PubRel packet
Publish
Represents an MQTT Publish packet.
SubAck
The SubAck packet is sent by the server to the client to confirm receipt and processing of a subscription request. It contains return codes indicating the maximum QoS level granted for each requested subscription.
Subscribe
Represents an MQTT Subscribe packet.
TopicQosFilter
Represents a single topic filter and its requested QoS level.
TopicQosFilters
Represents a collection of TopicQosFilter instances.
UnsubAck
Represents the packet ID UnsubAck packet
Unsubscribe
Represents an MQTT Unsubscribe packet.
Will
Represents the Last Will and Testament (LWT) feature in MQTT.

Enums§

ConnectReturnCode
Represents the return codes for a connection attempt in the MQTT protocol.
Packet
Represents all possible MQTT v3.x packet types
ReturnCode
Represents the return codes for a SubAck packet.