• 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

MOSQUITTO Version

Q&A Forum › Category: Raspberry Pi › MOSQUITTO Version
0 Vote Up Vote Down
Håkan Andersson asked 4 years ago

Hi
I have been using version  Moquitto v 1.5.7 and ESP32 software based on Module 7.
Now I have installed Moquitto on another RP and it is now v 2.0.11. I  can´t get in contact with the broker now. Should I do something else.
 
Best Regards Håkan 
 

7 Answers
1 Vote Up Vote Down
Best Answer
Sara Santos Staff answered 4 years ago

Hi again.
 
Here are the instructions to make it work.
 
1) Open an SSH connection with your Raspberry Pi and run the following command:

sudo nano /etc/mosquitto/mosquitto.conf

 
2) It will open the mosquitto.conf file. Move to the end of the file using the arrow keys and paste the following two lines:

listener 1883
allow_anonymous true

 
3) Then, press CTRL-X to exit and save the file. Press Y and Enter.
 
4) Reboot your Raspberry Pi with the following command:

sudo reboot

 
5) Close putty and open again after a few seconds to run the mosquito broker again.
This time, the ESP should connect to the broker.
 
Regards,
Sara
 

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

Hi.
Can you tell me the exact step in which you have issues with that version? What happens exactly?
Regards,
Sara

0 Vote Up Vote Down
Håkan Andersson answered 4 years ago

Hi
When I install Moquitto according to your instructions I now will get version 2. I have read that this version is not recommended for beginners. 
When I try to publish a topic I´m not getting an acknowledgement and I can´t read the topic at the receiver.
Is it possible to change the install routine to get Mosquitto version 1.5 or 1.6 or could I change the publish and subscribe routines?
Best Regards
 
Håkan

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

Hi.
I haven’t tried the new Mosquitto version.
But, in theory, it should work.
When you say you “can’t read the topic at the receiver”, what happens exactly?
Regards,
Sara

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

Hi.
I have seen that Mosquitto 2.0 needs some additional configurations to work: https://mosquitto.org/documentation/migrating-to-2-0/
I’ll try it and see if I get it working.
Regards,
Sara
 

0 Vote Up Vote Down
Håkan Andersson answered 4 years ago

Hi Sara
Your solution worked perfectly. Thank you!!
Best Regards
Håkan

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

Great!
I’ll mark this issue as resolved and update our tutorials soon.
Regards,
Sara

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 LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025
  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 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.