Learning MQTT Protocol: 006 – Subscribe Topic and Corresponding Messages (SUBSCRIBE, SUBACK, UNSUBSCRIBE, UNSUBACK)
Background Previously, we discussed how to publish messages and their corresponding packets; now let’s look at how the packets for subscribing to a topic are structured. SUBSCRIBE – Subscribe to a Topic The client sends a SUBSCRIBE packet to the server to create one or more subscriptions. Each subscription registers one or more topics of … Read more