How to fix Tasmota MQT: Connect failed to ..., rc 5


On the Tasmota console, you see an error message like

17:56:11.326 MQT: Connect failed to, rc 5. Retry in 50 sec


Your MQTT username/password is wrong. Check if they match what you have configured in your server in the Tasmota MQTT configuration page.