I am doing the MQTT section of the ESP32 course. I pasted the code from the rntlab website. The only thing I changed is I’m using a BME280 so I included the Adafruit BME280 library and I’m using bme.readtemperature to get the temperature. I’m getting the following error in the serial monitor:
Connecting to MQTT…
Guru Meditation Error: Core 1 panic’ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x40141364 PS : 0x00060230 A0 : 0x800d6551 A1 : 0x3ffb1ef0
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000002 A5 : 0x00000020
A6 : 0x00000020 A7 : 0x3ffb0060 A8 : 0x00000100 A9 : 0x00000001
A10 : 0x00000000 A11 : 0x69c4ef0d A12 : 0x3ffc1ab0 A13 : 0x69c4ef0d
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000000a EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000126 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
Backtrace: 0x40141364:0x3ffb1ef0 0x400d654e:0x3ffb1f10 0x400d660c:0x3ffb1f40 0x400d1463:0x3ffb1f60 0x400d8185:0x3ffb1fb0 0x40089311:0x3ffb1fd0
Here is the code I’m using:
https://pastebin.com/V1qGVriP
Please help!
Thanks,
Dennis
Hi.
In your sketch, you must delete all lines of code that refer to the DS18B20 sensor.
Additionally, you haven’t initialize the BME280 sensor. You need to do that.
Taking a look at this tutorial might help: https://randomnerdtutorials.com/esp32-mqtt-publish-bme280-arduino/
Regards,
Sara