Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The chart below summarizes how Quality of Service (QOS), Clean Session flag and Retain Message flag affects what messages are received.

Retain Message flagClean Session flagSubscribe QOSPublish QOSPublished Message Always Received
FalseTrue

0

0No
FalseTrue01 or 2No
FalseTrue1 or 20No
FalseTrue1 or 21 or 2No
FalseFalse00No
FalseFalse01 or 2No
FalseFalse1 or 20No
FalseFalse1 or 21 or 2Yes - all messages
TrueTrue

0

0Yes - last message only for each unique MQTT topic
TrueTrue01 or 2Yes - last message only for each unique MQTT topic
TrueTrue1 or 20Yes - last message only for each unique MQTT topic
TrueTrue1 or 21 or 2Yes - last message only for each unique MQTT topic
TrueFalse00Yes - last message only for each unique MQTT topic
TrueFalse01 or 2Yes - last message only for each unique MQTT topic
TrueFalse1 or 20Yes - last message only for each unique MQTT topic
TrueFalse1 or 21 or 2Yes - all messages

How do I identify which MQTT clients are connecting using 'Clean Session' set to False

...

The Chariot UI will display MQTT Client detail under MQTT > Client Status



How do I identify what QOS MQTT clients are subscribing with

MQTT Distributor

By default MQTT Distributor com.cirruslink.chariot.server.core.PacketHandler will log each MQTT client subscription as shown below:

Image Added

The [] after the topic subscription indicates the quality of service. For example:

  • spBv1.0/STATE/IamHost is subscribing with QOS 1
  • spBv1.0/# is subscribing with QOS 0

Chariot

The Chariot UI will display MQTT Client detail under MQTT > Client Status

Image Added