Write into SPIFF FileSystem

Tools required:

First create a binary payload from the directory to be uploaded to the SPIFFs filesystem using mkspiffs:

mkspiffs -c PATH -b 4096 -p 256 data.bin

where:

Next, use esptool to write the binary data.bin into flash:

esptool --chip esp8266 --port /dev/ttyUSB --baud 115200 write_flash 0xEB000 data.bin

where:

And finally verify that the data was written using esptool:

esptool --chip esp8266 --port /dev/ttyUSB --baud 115200 read_flash 0xEB000 0x1000 data.txt

where: