• 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

MicroPython Programming with ESP32 – Adding Additional DS18B20 Temperature Sensors?

Q&A Forum › MicroPython Programming with ESP32 – Adding Additional DS18B20 Temperature Sensors?
0 Vote Up Vote Down
umarmohammedru asked 6 years ago

In the code for sending BME280 sensor reading to the ifttt,  I want to know if the code is going to run once or it will keep on sending the sensor data every second. If that is the case then i did not see any loop ( While True) in the code. If I am right what ever you put in a boot.py would only run once. Please I need clarification. Thank you so much for this great work.

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

Hi.
You are right. The code in the boot.py file runs just once on boot. To send the readings, you need to press the ESP32 EN button (because it restarts and runs the boot.py file again).
This is an example to show how to send the readings to IFTTT. We didn’t include it in a loop because it could excess the maximum allowed requests to the IFTTT services.
Our aim with this example was to show you how to make requests. You should then apply this to a specific case. For example, add a button that when pressed sends the readings, send readings every 30 minutes, or other scenarios.
About using multiple DS18B20 temperature sensors, I’ve already answered that question in another thread, you can read here: https://rntlab.com/question/micropython-programming-with-esp32-adding-additional-ds18b20-temperature-sensors/
I hope my explanation is clear.
Thank you for supporting our work.
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.