• 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

Smart Home 5.4 subscribe gpio and leds

Q&A Forum › Category: ESP8266 › Smart Home 5.4 subscribe gpio and leds
0 Vote Up Vote Down
dave clark asked 11 months ago

Have been trying to get this module to work for two weeks and I am stuck!    Objective is to turn on / off led on ESP8266 using node-red dashboard. 
The gauges read the bme sensor and dashboard graphs have valid data so publish mqtt is working.
Arduino Serial Console says  “Publishing on topic esp/bme280/temperature at QoS 1, packetId: 0Message: 25.69” but there is no message showing successful subscription.
Mosquitto receives esp/digital/5 true and false but ESP never acknowledges the subscription. 

ESP_subscribe.ino has MQTT_SUB_DIGITAL set to “esp/digital/#” 
I get no status (Serial.print) from onMqttConnect; onMqttDisconnect; onMqttSubscribe;  onMQttUnsubscribe; onMQttMessage, etc.
Should I start by debugging “mqttClient.onSubscribe(onMqttSubscribe)” in setup()?
Any help appreciated
 

Question Tags: mqttClient.onSubscribe(onMqttSubscribe) handler seems to not be called. ESP Leds do not work.
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
Yes.
But, did you change anything on the code, besides the MQTT broker details and the network credentials?
 
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.