[Solved] Attempting MQTT connection... Failed. rc=-1 or rc=-2 or rc=-4, try again in 5 seconds

Published: 20 June 2021
on channel: Electronics Innovation
15,230
89

Get 10 PCBs at just $5 from my favorite PCB manufacturer - https://www.pcbway.com/

Project Page: https://electronicsinnovation.com/sol...

If you are using the MQTT protocol in any of your IoT projects to communicate with IoT Cloud, then you might aware of the following errors.
Attempting MQTT connection... Failed. rc=-1 or rc=-2 or rc=-3 or rc=-4 or rc=-6.

These are the general errors you will get while trying to communicate with any MQTT servers.
my channel/website comment box and email flooding with these types of errors to seek help to solve these errors every day. I have been answering these emails for a long. but the number of people is increasing and it is very difficult for me to reply to everybody. therefore, I have decided to make a video to explain these MQTT error codes and show you how to solve these.


=================================================
Subscribe to Electronics Innovation
http://bit.ly/ElectronicsInnovation

Visit Electronics Innovation.com for more Tutorials, Tips, Projects, and How It Works videos:
http://electronicsinnovation.com/
Follow us on Instagram:   / electronicsinnovation  

Like my page on Facebook:  / electroniczinnovation  
Follow us on Twitter:   / electronicsinno  

~-~~-~~~-~~-~
Please watch: "I AM IRON MAN | DIY Arc Reactor"
   • how to make iron man arc reactor | di...  
~-~~-~~~-~~-~


Watch video [Solved] Attempting MQTT connection... Failed. rc=-1 or rc=-2 or rc=-4, try again in 5 seconds online without registration, duration hours minute second in high quality. This video was added by user Electronics Innovation 20 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,230 once and liked it 89 people.