Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AR-D-R authored Dec 26, 2020
1 parent 65d9994 commit e37b82a
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# ESP32-OTA-File-management
ESP32 OTA Firmware update & File management.
OTA Firmware update & File management for ESP32.<br>
This sketch will let you:<br>
1. Update ESP32 Firmware using a compiled binary file.<br>
2. Upload SPIFFS.bin that can contain supporting files that you might need for your project.<br>
3. Browse, Delete, and Upload files stored on ESP32 File system.<br><br>

<b>Make sure</b> that your partition table is ready for OTA. You can select predefined Partition tables in Arduino IDE or create your own.
<br><br>
I used 16MB chip so my partition table looks like this.<br>

![](Screenshots/S1.JPG)<br>

<b>Don't forget</b> to include your local network SSID and PASSWORD.<br>
Then when everything is up and runnig you can access main page via esp32.local/ or using ip address that will be reported into a serial monitor.<br><br>

<p><b>1.</b> Firmware update is very straightforward. Bin file can be simply generated using Arduino IDE. Then find it, select it and press Update button. If successful there will be a popup window and after presssing OK you will be redirected to the main page. Meanwhile ESP will reboot and rewrite its APP derictory with uploaded bin.<br>

![](gif/1.gif)
</p><br>
<p><b>2.</b> SPIFFS.bin upload. For this one I used MKSPIFFS tool to generate SPIFFS.bin file. Command that initiates compiling looks like this:<br>
<b>mkspiffs -c C:\Users\xxxx\Documents\Arduino\OTA_file_management\data -b 4096 -p 256 -s 0x6F0000 spiffs.bin</b><br>
it compiles everything that is in data folder into one bin file. 0x6F0000 is the size of your SPIFFS partition and depends on partition table you choose.<br>

![](gif/2.gif)<br>
</p>
<p><b>3.</b> You can browse/delete/upload files stored in SPIFFS.<br>

![](gif/3.gif)<br></p>

0 comments on commit e37b82a

Please sign in to comment.