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:
- ESP8266 board
- USB cable
- DHT11 temperature/humidity sensor (https://www.sparkfun.com/products/10167)
- 10 kΩ resistor (https://www.sparkfun.com/products/8374)
- Breadboard
- Jumper wires
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.