• 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

Delay in sensor reading when opening the web server

Q&A Forum › Delay in sensor reading when opening the web server
0 Vote Up Vote Down
Nazmie Razali asked 6 years ago

Hi, I’m using Heltec Wifi  Lora 32 to build a Lora Receiver as in Module 11, Unit 3. I’m using the exact code as in the tutorial but I noticed that when I opened the web server, my ESP32 seems to delay/late in receive for the next reading (almost 30 to 60 seconds late). when I closed the web server, the sensor readings keep back to normal, which in this case,updated for every 2 seconds. Can you explained what should I do? thank you.

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.

I think what is happening is that the connection to the web server doesn’t close and it doesn’t update with new sensor readings.

In your web server code: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/LoRa_Project/LoRa_Receiver/LoRa_Receiver.ino

Add a few more lines of code as described here: https://rntlab.com/question/solved-esp32-web-server-drops-connection-crashes/

Let me know if it helps.

Regards,
Sara

0 Vote Up Vote Down
Nazmie Razali answered 6 years ago

Thank you Sara. The solution helped to solve the problem. 🙂

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

That’s great!
I’m glad it is working now 🙂
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.