Comments on: ESP8266 NodeMCU MQTT – Publish BME280 Sensor Readings (Arduino IDE) https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 16 Dec 2023 13:51:14 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: DH https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-878160 Sat, 16 Dec 2023 13:51:14 +0000 https://randomnerdtutorials.com/?p=96350#comment-878160 Thanks! great tutorial, I got it up and running right away. I have a question though, is there any way to publish rounded numbers to MQTT so the trailing numbers after the decimal point are removed? I’ve been trying different methods but nothing seems to work.

]]>
By: Jonas https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-802444 Mon, 12 Dec 2022 09:01:13 +0000 https://randomnerdtutorials.com/?p=96350#comment-802444 Great tutorial, many thanks! This is my first temperature sensor project and I am currently struggling to use your code example with deep sleep in order to run the sensor on batteries. I have read the deep sleep tutorial but I am not sure where to put the respective command without getting stuck at “connecting to WiFi…”. I guess the code will have to be rearranged but that is currently beyond my capabilities.

]]>
By: Gerald https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-782656 Sun, 11 Sep 2022 08:37:05 +0000 https://randomnerdtutorials.com/?p=96350#comment-782656 I have my ESP8266 + BMP280 + Raspberry Pi4. The code runs great. but seems to stop after an hour and the MQTT server does not receive the data. And the node-red dashboard just stops updating with the final data.

Any ideas ? also thanks for this great tutorial, its very easy to understand.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-739908 Tue, 19 Apr 2022 22:08:19 +0000 https://randomnerdtutorials.com/?p=96350#comment-739908 In reply to dave.

Hi.
Open a Terminal window on your Raspberry Pi.
Then, run the following command
hostname -I
It will return the RPi IP address.
Regards,
Sara

]]>
By: dave https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-739407 Mon, 18 Apr 2022 02:31:19 +0000 https://randomnerdtutorials.com/?p=96350#comment-739407 Not sure how I missed getting the IP address needed.

I’m using a small form factor PC running Ubuntu

// Change the variable to your Raspberry Pi IP address, so it connects to your MQTT broker
const char* mqtt_server = “REPLACE_WITH_YOUR_RPI_IP_ADDRESS”;

Question is how to obtain the URL on the NODE-RED host ?

]]>
By: Brian https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-714800 Wed, 29 Dec 2021 18:17:56 +0000 https://randomnerdtutorials.com/?p=96350#comment-714800 How can i take your 3 topics and convert them to a JSON string.

]]>
By: RAGHAVENDRA RAO https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-599321 Sun, 02 May 2021 00:56:28 +0000 https://randomnerdtutorials.com/?p=96350#comment-599321 Hello Rui
Nice description. I am working with BMP280 where I can publish Temperature, Pressure and Altitude.
What is the diff. between AsyncMQTTClient and ArduinoMqttClient ?
Can I use ArduinoMqttClient ?
Regards
Prof.K.R.Rao

]]>
By: azakow https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-560378 Sun, 21 Feb 2021 20:26:12 +0000 https://randomnerdtutorials.com/?p=96350#comment-560378 Thank you for this great description! implemented this on my very 1st ESP8266 project and it is working very well. I even added a few more sensors and respective topics to publish. Now the next step is to subscribe to topics. The code has commented sections which seem to handle just what I need. Are there any samples which show how to a subscrib to topic? A link would be just great. Thank you.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-553041 Tue, 09 Feb 2021 12:18:09 +0000 https://randomnerdtutorials.com/?p=96350#comment-553041 In reply to maymona.

Hi.
did you install node-red dashboard?
https://randomnerdtutorials.com/getting-started-with-node-red-dashboard/
Regards,
Sara

]]>
By: maymona https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-bme280-arduino/#comment-552559 Mon, 08 Feb 2021 21:21:24 +0000 https://randomnerdtutorials.com/?p=96350#comment-552559 hi ,, i was trying to apply the node red flow but i cant find the gauge node at all.

what should i do ?

waiting for your kind reply.

]]>