async-mqtt-client icon indicating copy to clipboard operation
async-mqtt-client copied to clipboard

Connect with wrong credentials appears like a valid connection

Open AcuarioCat opened this issue 3 years ago • 2 comments

When connecting using credentials that are incorrect it appears the connection is successful. I'm using the default esp8266 sample.

This is the log from a valid connect: Connecting to MQTT... Connected to MQTT. Session present: 0 Subscribing at QoS 2, packetId: 85 Publishing at QoS 0 Publishing at QoS 1, packetId: 86 Publishing at QoS 2, packetId: 87 Subscribe acknowledged. packetId: 85 qos: 2 Publish received. . . .

This is with invalid credentials: Connecting to MQTT... Connected to MQTT. Session present: 0 Subscribing at QoS 2, packetId: 1 Publishing at QoS 0 Publishing at QoS 1, packetId: 2 Publishing at QoS 2, packetId: 3 Subscribe acknowledged. packetId: 1 qos: 2 Publish acknowledged. packetId: 2 Publish acknowledged. packetId: 3

AcuarioCat avatar Dec 09 '21 05:12 AcuarioCat

That seems to be an issue with your broker. Why would it send acknowledgements when it should reject the client?

bertmelis avatar Dec 09 '21 08:12 bertmelis

It seems odd. I'm using CloudMQTT which is commercial so I would expect it to behave properly.

AcuarioCat avatar Dec 09 '21 13:12 AcuarioCat