Comments on: ESP8266 NodeMCU MQTT – Publish DS18B20 Temperature Readings (Arduino IDE) https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 07 Oct 2024 13:11:37 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: John https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-967740 Mon, 07 Oct 2024 13:11:37 +0000 https://randomnerdtutorials.com/?p=96329#comment-967740 In reply to Sara Santos.

Oops,, I missed that, thanks Sara.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-967681 Mon, 07 Oct 2024 08:15:31 +0000 https://randomnerdtutorials.com/?p=96329#comment-967681 In reply to John.

Hi.
Is is not available to download through the library manager.
You have to install it via .ZIP file as explained in the tutorial.
Regards,
Sara

]]>
By: John https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-967203 Sat, 05 Oct 2024 16:05:14 +0000 https://randomnerdtutorials.com/?p=96329#comment-967203 When trying to use this Sketch in Arduino IDE 2.3.3, and running a compile check I get an error:
fatal error: AsyncMqttClient.h: No such file or directory.
It appears that is no longer a valid library name. I don’t even see it when searching for it in the library manager. Can You tell me what is now being used? Thanks

]]>
By: Mariller https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-953224 Mon, 02 Sep 2024 07:42:42 +0000 https://randomnerdtutorials.com/?p=96329#comment-953224 Hello and thank you for your site
thanks to you I solved esp8266/AsyncMqttClient.h/ with home assistant
I found a solution that blocked the sending or the card
if we used an analog input (A0)
by calling this function every minute
Friendships from France GM

]]>
By: John https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-882751 Mon, 08 Jan 2024 16:16:45 +0000 https://randomnerdtutorials.com/?p=96329#comment-882751 Hey Guys, I’ve built this in the past with continued success. I have an Rpi 2b running node red and the mqtt broker that was available at that time. I wanted to replicate the system for bench testing new features, but now using either the Arduino IDE or Platform io I get a compiler error:
Compilation error: ‘AsyncMqttClient’ does not name a type
What am I missing? The (now) libraries are installed. Has something changed? Thanks

]]>
By: Herve https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-827090 Mon, 27 Mar 2023 13:43:42 +0000 https://randomnerdtutorials.com/?p=96329#comment-827090 Hi, if you have configured an authentification for the connection with the MQTT broker, don´t forget in “Edit mqtt-broker node” “Security” to indicate your username and password, so that the “esp/ds18/b20/temperature” node can connect and receive datas.

]]>
By: Herve https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-827070 Mon, 27 Mar 2023 09:07:33 +0000 https://randomnerdtutorials.com/?p=96329#comment-827070 In reply to Herve.

hi,
the problem was that i forgot to comment out this line
//mqttClient.setCredentials(“REPlACE_WITH_YOUR_USER”, “REPLACE_WITH_YOUR_PASSWORD”);
thanks

]]>
By: Herve https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-827069 Mon, 27 Mar 2023 08:53:38 +0000 https://randomnerdtutorials.com/?p=96329#comment-827069 In reply to Đức.

hi Sara, Đức,
i have the same with DS18B20, packetId no change, stay at 0, and i have Disconnected from MQTT.
Connecting to MQTT…
Disconnected from MQTT.
Connecting to MQTT…
i think become from the code, not from the sensor.

]]>
By: Mike https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-757798 Tue, 14 Jun 2022 16:30:12 +0000 https://randomnerdtutorials.com/?p=96329#comment-757798 In reply to Mike.

I have a typo error, i have defined byte ledIntensity in the loop not globally.

]]>
By: Mike https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-ds18b20-arduino/#comment-757797 Tue, 14 Jun 2022 16:28:10 +0000 https://randomnerdtutorials.com/?p=96329#comment-757797 The code works right out of the box but when I put e.g. an analogRead inside the loop(), but before the condition, something breaks and WiFi disconnects continuously.

The code added:
int LDR_PIN = A0; // LDR Sensor pin
byte ledIntensity;

void loop() {
byte ledIntensity = ledintensitySelect(analogRead(LDR_PIN));
if (now – lastMsg > 10000) {
….
}
}

]]>