← Back to team overview

mosquitto-dev team mailing list archive

[Question #136821]: Sample MQTT SUBSCRIBE MESSAGE


New question #136821 on mosquitto:

We are writing lightweight C Mqtt client which communicates with MQTT broker. We are sending SUBSCRIBE message in the following format:

1st byte - MQTT_SUBSCRIBE_COMMAND (0x82)
2nd - Remaining length
3rd and 4th byte - message id
remaining bytes - topic
last byte - 0

The subscribe command is not working using the above mentioned format. Can you provide us few sample SUBSCRIBE message that were used for mosquitto testing? This will really help us.



You received this question notification because you are a member of
Mosquitto Dev, which is an answer contact for mosquitto.