Toby Chui 2aad4c8794 Added software wol sender | hai 7 meses | |
---|---|---|
.. | ||
data | hai 7 meses | |
lib | hai 7 meses | |
README.md | hai 7 meses | |
espwol.ino | hai 7 meses | |
macsave.ino | hai 7 meses | |
sequences.ino | hai 7 meses | |
webserver.ino | hai 7 meses |
This guide will walk you through the process of uploading files, such as HTML, CSS, JavaScript, images, etc., to an ESP8266 microcontroller using the Arduino IDE.
Prepare your files: Add the files you want to upload to the ESP8266. These could be HTML, CSS, JavaScript, images, or any other files you need for your project.
Check if the data folder exists: In your Arduino sketch folder, there should be a folder named data
(all lowercase). This folder will hold the files you want to upload.
Place your files in the data folder: Copy or move your files into the data
folder. You can organize them into subdirectories if needed.
Upload files using the Arduino IDE:
Tools
> ESP8266 LittleFS Data Upload
. This will compress the data
folder and upload it to the ESP8266's SPIFFS or LittleFS filesystem.
Access uploaded files in your sketch:
You can access the uploaded files using functions like LittleFS.open()
in your sketch. For example:
File file = LittleFS.open("/filename.txt", "r");
Write your sketch: Now you can write your Arduino sketch as usual, add custom buttons actions and access the uploaded files from the SPIFFS or LittleFS filesystem.