Sample MQTT SUBSCRIBE MESSAGE
Asked by
Venkates Velayutham
Hi,
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_
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.
Regards,
Venky
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Venkates Velayutham
- Solved:
- Last query:
- Last reply:
To post a message you must log in.