• 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

Smarthome

Q&A Forum › Category: ESP32 › Smarthome
0 Vote Up Vote Down
marcjeanvandenbril asked 7 months ago

Hello,
I’m working with your book SMARTHOME RASPBERRY…
Thanks to your explanations, I’ve become familiar with Node-RED. I have no difficulty getting MQTT to work with Node-RED to communicate with a Raspberry Pi module.
However, I can’t get it to communicate with ESP32 and ESP8266 boards. Uploading works fine.
The serial port responds:
Connecting to Wi-Fi…
[WiFi-event] event: 0
[WiFi-event] event: 2
[WiFi-event] event: 4
[WiFi-event] event: 7
WiFi connected
IP address:
192.168.0.43
Connecting to MQTT…
Connected to MQTT.
Session present: 0
Subscribing at QoS 2, packetId: 1
Publishing at QoS 0
Publishing at QoS 1, packetId: 2
Publishing at QoS 2, packetId: 3
Subscribe acknowledged.
packetId: 1
The “session present: 0” is not normal, I suppose.
I created the Node-RED flow,
Both “MQTT in” entries
are marked “connected”
but nothing is printed on the dashboard.
Can you help me?
Thank you in advance.

Question Tags: MQTT and ESP32 / ESP8266
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi.
 
The information in the serial monitor seems correct.
 
If in the Node-RED dashboard, under the nodes, it shows “connected”, it means it doesn’t have any problems connecting with the broker.
 
The only issues can be the MQTT topics they are subscribed to.
Can you double-check if the topics are correct?
 
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 7 months ago

That was it, the topics…
It’s case-sensitive.
Thank you for your valuable advice.

Regards,

Marc

0 Vote Up Vote Down
marcjeanvandenbril answered 7 months ago

That was it, the topics…
It’s case-sensitive.
Thank you for your valuable advice.

Regards,

Marc

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Great.
I’m glad the issue is solved.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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] Smart Home with Raspberry Pi, ESP32, and ESP8266 Version 1.7 November 28, 2025
  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025

You must be logged in to view this content.

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

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