• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Disconncted from MQTT

Q&A Forum › Category: ESP32 › Disconncted from MQTT
0 Vote Up Vote Down
Swapnil Bhole asked 4 years ago

In learn esp-32, Module-7, on receiver board, i m getting Disconnected from MQTT on serial. 
I have rebooted raspberry pi & sometime it work. What are possible root causes of this. 

Question Tags: MQTT
5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago
  • Do you have multiple boards running as an MQTT client in your network?
  • did you check your MQTT broker IP address?
  • did your MQTT broker installed successfully ?
0 Vote Up Vote Down
Swapnil Bhole answered 4 years ago
  • Do you have multiple boards running as an MQTT client in your network? No. Client-1 & Client-2, only 2 boards 
  • did you check your MQTT broker IP address?. Yes. Checked twice. 
  • did your MQTT broker installed successfully ?. For client-1, MQTT is connected, For client-2 its getting disconnected. so, broker is installed successfully (I think )
0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Hello, I’ve been trying to figure it out what’s missing and checking the code again to see if there is something work… I honestly don’t know what’s the issue.

  • If one of the board connects, I don’t know why the other board wouldn’t connect too. Do you have a single router in our house? (or do you have multiple Wi-Fi boosters?)
0 Vote Up Vote Down
Swapnil Bhole answered 4 years ago

I have only 1 wi-fi router. No booster. 

0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Hello, to be honest I can’t think of anything else that might be causing this issue… 

  • Is your Raspberry Pi connected via Ethernet cable? 

I don’t know why it sometimes works though. If you had something wrong, you would never be able to connect to your MQTT broker.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.