Search code examples
fluttermqtt

The broker is not responding to the connection request message correctly The return code is MqttConnectReturnCode.notAuthorized


I'm trying to connect my Flutter App with mqtt broker but unfortunately this happened. May I know why this happened??

[log] mqtt-client::NoConnectionException: The maximum allowed connection attempts ({3}) were exceeded. The broker is not responding to the connection request message correctly The return code is MqttConnectReturnCode.notAuthorized


Solution

  • You exceeded your login attempts for connecting Mqtt, this issue is related to your

     MQTT client
    

    it only give you three attepts to log in correctly ,after that it will close the login

    you need to fix it by using

    MQTT client setting