Storing data in the ESP8266 filesystem

In this recipe, we will be looking at how to store data in the ESP8266 filesystem. To do that, we will store data measured by a sensor in the flash filesystem. This will get you started on using SPIFFS to store files on your ESP8266, and give you an idea of how you can use the filesystem in your projects.

Getting ready

Make sure you have the following components before proceeding:

Start by mounting the ESP8266 board and the DHT11 sensor onto the breadboard. Connect a 10 kΩ pull up resistor to the DHT11 data pin and connect the VCC pin and ...

Get ESP8266 Internet of Things Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.