Comments on: ESP32 MQTT – Publish BME280 Sensor Readings (Arduino IDE) https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 12 Jun 2024 10:28:06 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Rick Epstein https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-899945 Thu, 21 Mar 2024 09:11:28 +0000 https://randomnerdtutorials.com/?p=95468#comment-899945 Hi there! A great tutorial, thus a good learning experience for sure. A couple of items to note. As I am using an esp32S3, the library I needed to use was AsyncMQTT_ESP32.h rather than that specified in the code example (AsyncMqttClient.h). That said, I got it to work quite well thus far.
I also wanted to note that after installing the mosquitto MQTT broker on my raspberry pi400, that the mosquitto log, db and run directories needed to be moved to an area where the user has write permissions. This required changes to the mosquitto configuration file.
Lastly, getting ‘node red’ going was a bit of a challenge, but a link to the Node Red documentation was a great find. The link that really helped is : https://nodered.org/docs/user-guide/

..rick epstein..

]]>
By: Rosalia https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-872557 Fri, 17 Nov 2023 13:13:42 +0000 https://randomnerdtutorials.com/?p=95468#comment-872557 Hello, thank you for the tutorial.

1.
In my case, everything else seems to work but while the MQTT broker does get a connection attempt from the esp32, it regards it as an unknown/unauthenticated connection.
I have added the authentication details into my code and have tested that the broker itself works by following one of your tutorials on it.

What might be the issue here?

Where is the Async TCP library exactly used in the code? Should the library be included in the beginning of the code (“#include “AsyncTCP.h”)?

]]>
By: KDA https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-797919 Thu, 17 Nov 2022 17:32:50 +0000 https://randomnerdtutorials.com/?p=95468#comment-797919 In reply to Rui Santos.

I had alreeady installed a ESP32 driver in my Arduino IDE. When I compiled the Code the first time, I had the same error message. Then I read “Installing ESP32 in Arduino IDE” und installed exactly in this way. This solves the problem and I can compile without errors.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-778286 Wed, 24 Aug 2022 22:29:59 +0000 https://randomnerdtutorials.com/?p=95468#comment-778286 In reply to Marlon Paco.

Olá.
Pode dar uma olhada nos nossos tutorials the LoRa e ver se algum deles o pode ajudar: https://randomnerdtutorials.com/?s=lora
Cumprimentos,
Sara

]]>
By: Marlon Paco https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-778175 Wed, 24 Aug 2022 17:26:05 +0000 https://randomnerdtutorials.com/?p=95468#comment-778175 Oi, você teria esse mesmo projeto, porém? captando dados de um esp32, enviando por rede lora a outro esp32(Gatwey)? preciso exatamente dessa aplicação, porém a captura de dados precisa ser feita a 1km de distancia.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-775831 Mon, 15 Aug 2022 11:23:19 +0000 https://randomnerdtutorials.com/?p=95468#comment-775831 In reply to John M Kiener.

Hi.
don’t forget you also need to include the AsyncTCP library:https://github.com/me-no-dev/AsyncTCP
Regards,
Sara

]]>
By: John M Kiener https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-775477 Sat, 13 Aug 2022 18:56:18 +0000 https://randomnerdtutorials.com/?p=95468#comment-775477 Great tutorial.
When trying to compile the code, copied from the tutorial, I get pages of errors similar to:
“c:/users/john/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-
esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/
ld.exe:
C:\Users\John\OneDrive\Documents\Arduino\libraries\AsyncMqttClient\src/AsyncMqttClient.cp
p:700: undefined reference to `AsyncClient::connect(IPAddress, unsigned short)'”

My understanding of these error messages suggests I am using the wrong “AsyncMqttClient.h” include file.

https://github.com › marvinroger › async-mqtt-client
Jul 27, 2021 · Async MQTT client for ESP8266 and ESP32. An Arduino for ESP8266 and ESP32 asynchronous MQTT client implementation, built on me-no-dev/ESPAsyncTCP (ESP8266) | me-no-dev/AsyncTCP (ESP32).. This is the library package I am using.

Please point me in the right direction to resolve this issue.

]]>
By: Jacques https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-773642 Sat, 06 Aug 2022 15:14:01 +0000 https://randomnerdtutorials.com/?p=95468#comment-773642 In reply to Jess.

I have the same “issue”. My broker does not accept publisher, and, as Jess explains, we need to “allow anonymous true” in mosquitto.conf. I have not seen where we can “name” ESP publisher in the sketch/Async library. Not a big deal with learning prototype, but if we can, security will be better :).

]]>
By: Joe Bauer https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-701739 Mon, 22 Nov 2021 04:55:18 +0000 https://randomnerdtutorials.com/?p=95468#comment-701739 I like to put my projects in a 3d printed case. Is there a way to isolate the temperature sensor from the heat of the esp32? I have put vents in the case and mounted the sensor on the outside of the case. I still get elevated temperature readings.

Anyway I can post a picture?

Any suggestions would be helpful.

]]>
By: mohsawaf https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/#comment-683112 Wed, 13 Oct 2021 12:09:18 +0000 https://randomnerdtutorials.com/?p=95468#comment-683112 Hey,

thank you for the great tutorial.

I dont want to use the node red and the Raspberry Pi.

My Applecation:
Sensor to ESP32 (via I²C)
The ESP32 is connected to a router local wifi (without internet)
The PC is connected to the router via Ethernet
I have installed mosquitto broker and MQTT Explorer as a Mqtt Client instead of red node.

But its not working for mr

]]>