Hi Ori,
> Some topic names are illegal in MQTT. What happens if a client sends a
> CONNECT message to the MQTT server which contains an invalid will
> topic (for example, the empty topic). There is no CONNACK return code
> for this in the spec. How would you approach this?
The best fit would be a return code of 0x03 - Broker Unavailable.
The alternative is to just drop the connection - which is what you
might considering doing for an invalid topic in a Publish, for
example.
Either way, it is not ideal as it won't help the client know what it
did wrong. Perhaps a job for the wiki will be to collate any other
reasons a connect could be rejected. They could then be considered in
the future for new CONNACK return code values.
Cheers,
Nick
> --
> To learn more about MQTT please visit
http://mqtt.org
>
> To post to this group, send email to
mq...@googlegroups.com
> To unsubscribe from this group, send email to
>
mqtt+uns...@googlegroups.com
>
> For more options, visit this group at
>
http://groups.google.com/group/mqtt