• 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 5.4 publish sensor readings debug dashboard incomplete

Q&A Forum › module 5.4 publish sensor readings debug dashboard incomplete
0 Vote Up Vote Down
dave clark asked 12 months ago

 

#hardware
Got the BME set up on ESP8266 with this error messsage
Error downloading https://raw.githubusercontent.com/espressif/arduino-esp32/gh�pages/package_esp32_index.json

#node-red
Added the components as per tutorial.

#problem

I see gauges and chart widgets on UI but no data.

I can see the temp/humid/pres in the BME in the arduino serial console.

#ESP8266
Connecting to Wi-Fi…
Publishing on topic esp/bme280/temperature at QoS 1, packetId: 0Message: 20.60
Publishing on topic esp/bme280/humidity at QoS 1, packetId 0: Message: 51.62
Publishing on topic esp/bme280/pressure at QoS 1, packetId: 0Message: 1008.915

#debug
On the pi i run this: mosquitto_sub -t /# -u raspberrypi -P blah
and get no results.

# Looking at the ESP code – it looks ok.

#define MQTT_HOST IPAddress(192, 168, 4, 227) //MQTT BROKER IP ADDRESS

#define MQTT_PORT 1883
#define BROKER_USER “raspberrypi”
#define BROKER_PASS “None1234”

#define MQTT_PUB_TEMP “esp/bme280/temperature”
#define MQTT_PUB_HUM “esp/bme280/humidity”
#define MQTT_PUB_PRES “esp/bme280/pressure”

I am not seeing this message:
Serial.println(“Connected to MQTT.”);

 

4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi.
Make sure you use the same password for the code, the MQTT broker, and the debugging command you’re using on the Pi.
It seems you’re using different passwords??
 
It seems the ESP is not connecting to the broker. It’s probably an issue with username and password.
 
Regards,
Sara

0 Vote Up Vote Down
dave clark answered 12 months ago

ok.  i tried so many different things.  this was the problem:
 https://raw.githubusercontent.com/espressif/arduino-esp32/gh�pages/package_esp32_index.json
and arduino offered to update some boards and libraries and it got worse! 

i finally reinstalled all from zip files and it seems to be resolved.  
 

0 Vote Up Vote Down
dave clark answered 12 months ago

ok.  i tried so many different things.  this was the problem:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh�pages/package_esp32_index.json
and arduino offered to update some boards and libraries and it got worse!

i finally reinstalled all from zip files and it seems to be resolved.

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

Ok. Great.
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

  • [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.