• 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

Module 6 Unit 5

Q&A Forum › Category: Home Automation › Module 6 Unit 5
0 Vote Up Vote Down
Ike Mitchell asked 3 years ago

Beginning with this unit, the rpi port changes from :1880 to :1883, and I stopped being able to follow.

On the 8266 serial monitor, it shows “Publish message…” text in the loop, but the code never goes through the “callback function.

It’s weird as all the code says 1883 in both 8266 & in nodered code but I still log into 1880 and see just the hard prints and no message, no repeating line, just a static message with “My Message” ont e screen but no count.

How much sof early exercises must I keep for this unit to work. Which port is correct.

What don’t I understand here.

Thanks in advance

Question Tags: Module 6 unit 5 doesn’t send message
3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 3 years ago

Hello Ike, I apologize for the misunderstanding.

  • The Node-RED software port is always 1880, so to access your Node-RED dashboard type http://RPI-IP:1880
  • The port number 1883 is for the Mosquitto MQTT broker

Your ESP8266 is not connected directly to Node-RED. It’s connected to the Mosquitto MQTT broker on port 1883.

Then, your Node-RED client also connects to the MQTT broker on port 1883.

Does that make sense?

(In summary, Mosquitto MQTT Port = 1883, Node-RED = 1880)

Regards,
Rui

0 Vote Up Vote Down
Ike Mitchell answered 3 years ago

Hurray!  it worked.  Took a little to figure out but I’m good until next time.  Thx for quick response

Ike

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

No problem! I’m glad it worked 🙂

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] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

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

Copyright © 2013-2023 · 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.