Some time back, while working through the esp8266/esp32 course, I built two of the devices that uses the BME280 sensor. I put them to good use monitoring my storage boxes for 3D filament. They having been working fine for almost a year. I recently decided to build a third one. I used the same components; wemos D1 mini esp32, bme280 and a SSD1306 display. I used the same code with the only difference being the name of the box (box 1, 2, 3) which also was used for the MQTT topic. The topic appears four times in each sketch. I also restructured the Node Red flows to add the new device with the only difference being the appropriate box#. I loaded the code into the new device and it appeared to be functioning as advertised. I then went to the Node Red and soon learned that the new unit was not inputting any data. Box 1/2 were working fine. On my U/I, the display had the gauges and charts with no data. The debug display had no inputs from Box3. Here is where I need some advice. Everything is on the same network with the same credentials. They use the same RPi running MQTT and NodeRed. I upgraded the RPi and rebooted my router. I printed the gauge and chart nodes from a working unit to make sure all the data was correct on Box3. I am not sure where to go with this next. I also performed a Compare of all three .ino files and found no differences except the four places in each sketch that that mentioned the box #. The screenshot that I attached is running constantly from the Serial Monitor. I don’t know what all this means but I have a clue that the answer might be there. The IDE is v2.3.6
Any idea what might be causing this issue?
Thank you
KentM
Hi.
Since the data is not showing up on Node-RED debug node, the issue is probably related to the MQTT topic.
Double-check the topic for that new box on the arduino code. Make sure the topic has a unique name.
Double-check on the Node-RED input node that it is subscribing to the correct topic. Also, make sure you see the green “connected” message under that new node when you deploy the flow.
Regards,
Sara
Sara, Thanks for the response. I have checked everything you suggested but don’t see the problem. I have included a link to my google drive with a folder including three files. One is the flows, one is the serial monitor output and the last shows the section of the code with the topics in question. Each of the MQTT input nodes show to be connected.
https://drive.google.com/open?id=1S2yMBVoKlIfZretHc_iEb3kRAQKToXHK&usp=drive_fs
Regards
KentM
Hi.
I notice you have an issue related to the AsyncTCP library.
Can you double-check the AsyncTCP library you’re using?
There’s a new version that you should use.
Unninstall the current AsyncTCP library you have and remove all related folders from the libraries Arduino folder.
Then, install the AsyncTCP library by ESP32Async (you can install it via the Arduino IDE Library Manager.)
Regards,
Sara
Sara, It appeared that I was using the library 1.1.1. I installed the version 3.4.2 by ESP32Async and then reloaded the sketch. That solved the problem.
Thanks for the help.
Regards
KentM