Publish & Subscribe Topic to publish Payload QoS 0 1 2 Retain Publish Topic to subscribe QoS 0 1 2 Subscribe