• 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

Database into esp32 variable

Q&A Forum › Category: ESP32 › Database into esp32 variable
0 Vote Up Vote Down
Hasan Demirayak asked 5 years ago

I am trying to read data from database using esp32. I want to import the read value into a variable. How can I do that? Can you give an example?

Question Tags: Mysql database
1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello Hasan, unfortunately I don’t have an exact example, but did you read my previous answer?
In order to get a value to your ESP32, you should setup your PHP server to return your desired information when it receives an HTTP request from the ESP32.

  • Here’s an example: https://randomnerdtutorials.com/esp32-http-get-post-arduino/

Basically, you can have a PHP script or Node-RED flow that answers an HTTP GET request to update an ESP32 variable.
I hope that helps!

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.