How to run scripts for esp32 in esp-idf
Posted: Thu Jul 06, 2023 8:00 am
Hello,
I am seeking assistance with running scripts on the ESP32 using the ESP-IDF framework. My goal is to develop an application that can host a web server to provide various settings to users. This application will include JavaScript (JS), Cascading Style Sheets (CSS), and Hypertext Markup Language (HTML) files. Additionally, I would like to incorporate configuration files for controlling RGB LEDs. The main objective is to enable the ESP32 device to detect any updates in the JS, CSS, HTML, or configuration files, download them, and store them in the device's flash memory without resorting to an Over-The-Air (OTA) update.
In simpler terms, I want to update the frontend and configuration files on the ESP32 without making any changes to the backend code.
I have a few questions:
Is it possible to achieve the mechanism described above using the ESP32 and ESP-IDF?
What scripting language does the ESP32 support for running scripts?
It would be greatly appreciated if you could provide an example code demonstrating this process.
I am seeking assistance with running scripts on the ESP32 using the ESP-IDF framework. My goal is to develop an application that can host a web server to provide various settings to users. This application will include JavaScript (JS), Cascading Style Sheets (CSS), and Hypertext Markup Language (HTML) files. Additionally, I would like to incorporate configuration files for controlling RGB LEDs. The main objective is to enable the ESP32 device to detect any updates in the JS, CSS, HTML, or configuration files, download them, and store them in the device's flash memory without resorting to an Over-The-Air (OTA) update.
In simpler terms, I want to update the frontend and configuration files on the ESP32 without making any changes to the backend code.
I have a few questions:
Is it possible to achieve the mechanism described above using the ESP32 and ESP-IDF?
What scripting language does the ESP32 support for running scripts?
It would be greatly appreciated if you could provide an example code demonstrating this process.