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.
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
That was it, the topics…
It’s case-sensitive.
Thank you for your valuable advice.
Regards,
Marc
That was it, the topics…
It’s case-sensitive.
Thank you for your valuable advice.
Regards,
Marc