当前位置:网站首页>ESP8266-Arduino编程实例-SPIFFS及数据上传(Arduino IDE和PlatformIO IDE)
ESP8266-Arduino编程实例-SPIFFS及数据上传(Arduino IDE和PlatformIO IDE)
2022-07-28 20:11:00 【视觉&物联智能】
SPIFFS及数据上传(Arduino IDE和PlatformIO IDE)
1、SPIFFS介绍
ESP8266 包含一个串行外设接口闪存文件系统 (SPIFFS)。 SPIFFS 是为带有闪存芯片的微控制器创建的轻量级文件系统。
SPIFFS 可以像在计算机中的普通文件系统中一样访问闪存芯片存储器,但更简单且更受限制。 可以读取、写入、关闭和删除文件。 SPIFFS 不支持目录,因此所有内容都保存在平面结构中。
将ESP8266与SPIFFS结合,可以方便储存数据:
- 使用设置创建配置文件;
- 永久保存数据;
- 创建文件以保存少量数据,而不是使用 microSD 卡;
- 保存 HTML 和 CSS 文件以构建 Web 服务器;
- 保存图像、数字和图标;
- …
在我们的大多数 Web 服务器项目中,我们直接将 Web 服务器的 HTML 代码编写为字符串。 使用 SPIFFS,可以在单独的文件中编写 HTML 和 CSS,并将它们保存在 ESP8266 文件系统中。
本文将详细介绍如何上传SPIFFS数据及如何使用SPIFFS。
2、Arduino IDE中上传SPIFFS数据
Arduino IDE默认不支持上传SPIFFS数据,需要安装插件。具体步骤如下:
**第一步:**下载插件,ESP8266FS-X.zip<
边栏推荐
- 微信小程序开发入门,自己开发小程序
- Versailles ceiling: "the monthly salary of two years after graduation is only 35K, which is really unpromising ~ ~"
- Open earphone which air conduction earphone with good sound quality and recognized sound quality is recommended
- Two global variables__ Dirname and__ Further introduction to common functions of filename and FS modules
- Pytoch learning record (III): random gradient descent, neural network and full connection
- [Bluetooth Bluetooth development] VIII. Transmission layer of ble protocol
- Huawei releases the first electric drive system driveone: charging for 10 minutes, endurance of 200km
- 小程序开发需要什么技术
- 节省70%的显存,训练速度提高2倍!浙大&阿里提出在线卷积重新参数化OREPA,代码已开源!(CVPR 2022 )
- 基于Xception-TD的中华传统刺绣分类模型构建
猜你喜欢

Zhuzhou Jiufang middle school carried out drowning prevention and fire safety education and training activities

基于多模态融合的非遗图片分类研究

Which brand is the best and most cost-effective open headset

Week 6 Linear Models for Classification (Part B)

How to design workflow engine gracefully (glory Collection Edition)

Object based real-time spatial audio rendering - Dev for dev column

HCIA comprehensive experiment (take Huawei ENSP as an example)

基于对象的实时空间音频渲染丨Dev for Dev 专栏

Vimtutor编辑

How to skillfully use assertion + exception handling classes to make the code more concise! (glory Collection Edition)
随机推荐
RHCSA第一天
比UUID更快更安全NanoID到底是怎么实现的?(荣耀典藏版)
Research on intangible cultural heritage image classification based on multimodal fusion
不用Swagger,那我用啥?
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
OA项目之会议通知(查询&是否参会&反馈详情)
[英雄星球七月集训LeetCode解题日报] 第28日 动态规划
How Oracle exports data (how Oracle backs up databases)
Which brand is the best and most cost-effective open headset
LT7911D Type-C/DP转mipi 方案成熟可提供技术支持
蚂蚁集团境外站点 Seata 实践与探索
开放式耳机哪个音质好、公认音质好的气传导耳机推荐
Week 6 Linear Models for Classification (Part B)
Nano gold coupled antibody / protein Kit (20nm, 1mg/100 μ g/500 μ G coupling amount) preparation
Matlab|基础知识总结一
物联网技术栈之网关技术
Layout the 6G track in advance! Ziguang zhanrui released the white paper "6G unbounded AI"
高举5G和AI两面旗帜:紫光展锐市场峰会火爆申城
MATLAB从入门到精通 第1章 MATLAB入门
With the help of domestic chip manufacturers, the shipment of white brand TWS headphones has reached 600million in 2020