--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
At least for the CONNECT message received by the broker, the return code is set by the broker (for the subsequent CONNACK message); not checked. Are you asking how/when to set this return code?
Pardon brevity, typos and grammar mistakes. Sent from phone.
--
Ok. The following could be steps:
1. Parse CONNECT message to extract client inditifier - clientId
2. Invoke a function validateClientId (clientId )
3. The implementation of the function validateClientId() returns Boolean value.
4. If validateClientId() is False, set rc as 0x02 for CONNACK message.
5. Write CONNACK message.
Pardon brevity, typos and grammar mistakes. Sent from phone.
thts the exact thing i am asking sorry i was twisting this out
--
i have built a parse function but i can't catch all the error scenarios here.I am confused in which scenarios do i return the respective error codes .
--
hi,
I am confused about the 3rd case could you please elaorate it a bit actually i have slightly covered the other cases nearly the way you listed above but i am confused about the 3rd case
--
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
hi,
Yes i have thoroughly rea the specification of the mqtt.It only states that the broker will send this return code only if network connection is established but the mqtt server is not available.What exactly is meant by that? I mean in which basis do i check for the above to be true .I just want to know some instances so that it becomes clea to me
--