Toby Chui 2aad4c8794 Added software wol sender | 8 hónapja | |
---|---|---|
.. | ||
data | 8 hónapja | |
lib | 8 hónapja | |
README.md | 8 hónapja | |
espwol.ino | 8 hónapja | |
macsave.ino | 8 hónapja | |
sequences.ino | 8 hónapja | |
webserver.ino | 8 hónapja |
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.