Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ESP8266 Home Automation Projects

You're reading from  ESP8266 Home Automation Projects

Product type Book
Published in Nov 2017
Publisher Packt
ISBN-13 9781787282629
Pages 196 pages
Edition 1st Edition
Languages
Authors (2):
Catalin Batrinu Catalin Batrinu
Profile icon Catalin Batrinu
Constantin Tambrea Constantin Tambrea
Profile icon Constantin Tambrea
View More author details
Toc

SPIFFS


SPI Flash File System (SPIFFS) is a filesystem created for small embedded systems. SPIFFS has many advantages since it allows you to create files and simulate directories.

The following are the features of SPIFFS:

  • Designed for low RAM use on microcontrollers
  • Uses statically sized RAM buffers
  • Posix-like api: open, close, read, write, seek, stat, and so on
  • It can run on any NOR flash, not only the SPI flash. Multiple SPIFFS configurations can run on the same target - and even on the same SPI flash device
  • Implements static wear levelling
  • Built-in filesystem consistency checks
  • Highly configurable and can be adapted for a variety of flash types

I highly encourage you to use SPIFFS in your designs to store data in NOR flash since it is very easy to read and write data, is like a *nix filesystem.

Filesystem size depends on the flash chip size. Depending on the board that is selected in the IDE, you can select different sizes for SPIFFS. For example, in case if you have selected the NodeMcu v1.0 as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}