FlashMQ currently doesn't except MQTT connect packets that flag a username as present, but is empty. It says:
Username flagged as present, but it's 0 bytes.
The MQTT spec says:
If the User Name Flag is set to 1, a user name MUST be present in the payload
But, there is some ambiguity if a zero byte username means 'present'. FlashMQ has the current behavior to not have two ways of having an anonymous login.
But, because other servers do accept this situation, we should deal with it. Perhaps with a config option.
FlashMQ currently doesn't except MQTT connect packets that flag a username as present, but is empty. It says:
The MQTT spec says:
But, there is some ambiguity if a zero byte username means 'present'. FlashMQ has the current behavior to not have two ways of having an anonymous login.
But, because other servers do accept this situation, we should deal with it. Perhaps with a config option.