Book Image

ESP8266 Home Automation Projects

By : Catalin Batrinu, Constantin Tambrea
Book Image

ESP8266 Home Automation Projects

By: Catalin Batrinu, Constantin Tambrea

Overview of this book

The ESP8266 is a low-cost yet powerful Wi-Fi chip that is becoming more popular at an alarming rate, and people have adopted it to create interesting projects. With this book, you will learn to create and program home automation projects using the ESP8266 Wi-Fi chip. You will learn how to build a thermostat to measure and adjust the temperature accordingly and how to build a security system using the ESP8266. Furthermore, you will design a complete home automation system from sensor to your own cloud. You will touch base on data monitoring, controlling appliances, and security aspects. By the end of the book, you will understand how to completely control and monitor your home from the cloud and from a mobile application. You will be familiar with the capabilities of the ESP8266 and will have successfully designed a complete ready-to-sell home automated system.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
3
Building a Home Thermostat with the ESP8266
5
Using ESP8266 to Build a Security System
Index

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...