• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Web Server issue

Q&A Forum › Category: ESP32 › Web Server issue
0 Vote Up Vote Down
Charles Merkel asked 3 weeks ago

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

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 weeks ago

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

0 Vote Up Vote Down
Charles Merkel answered 2 weeks ago

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 

0 Vote Up Vote Down
Sara Santos Staff answered 2 weeks ago

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
 

0 Vote Up Vote Down
Charles Merkel answered 2 weeks ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 2 weeks ago

Great.
I’m glad the issue is solved.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.