提交 7f62b159 编写于 作者: 云逸之's avatar 云逸之 💬

更新readme

上级 18b31114
使用gzip压缩html,并生成字节码数组。
单片机的空间较小,但偶尔需要提供web服务,需要将一些资源内置在单片机中。而有些html或者js或者其他文件占用大量空间。
此时则需要使用压缩的方式减少占用。
本工具使用gzip压缩http资源,并生成字节码数组。
生成结果样例如下
......@@ -11,11 +14,7 @@ const uint8_t index_html_gz[] = {
};
```
用于mcu节省空间
设置http响应头`Content-Encoding` 中压缩格式,让浏览器按gzip格式解压
需要设置http响应头`Content-Encoding` 中压缩格式,让浏览器按gzip格式解压
详细使用说明 : https://blog.csdn.net/qq_26700087/article/details/125963998?spm=1001.2014.3001.5502
esp32系列按以下方式
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册