Skip to content

Commit 706f911

Browse files
committed
docs: add introduction about at web OTA via WeChat
1 parent 0014126 commit 706f911

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/en/AT_Command_Set/Web_server_AT_Commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Notes
4141

4242
- There are two ways to provide the HTML files needed by the web server. One is to use fatfs file system (non ESP8266 chips), and you need to enable AT FS command at this time. The other one is to use embedded files to storge HTML files (default setting).
4343
- Please make sure that the max number of open sockets is not less than 12, you may change the number by ``./build.py menuconfig`` > ``Component config`` > ``LWIP`` > ``Max bumber of open sockets`` and compile the project (see :doc:`../Compile_and_Develop/How_to_clone_project_and_compile_it`).
44-
- The default firmware does not support web server AT commands (see :doc:`../Compile_and_Develop/How_to_understand_the_differences_of_each_type_of_module`), but you can enable it by ``./build.py menuconfig`` > ``Component config`` > ``AT`` > ``AT WEB Server config wifi command support`` and compile the project (see :doc:`../Compile_and_Develop/How_to_clone_project_and_compile_it`).
44+
- The default firmware does not support web server AT commands (see :doc:`../Compile_and_Develop/How_to_understand_the_differences_of_each_type_of_module`), but you can enable it by ``./build.py menuconfig`` > ``Component config`` > ``AT`` > ``AT WEB Server command support`` and compile the project (see :doc:`../Compile_and_Develop/How_to_clone_project_and_compile_it`).
4545
- For ESP8266 devices, you may need to turn off some unnecessary options to store the necessary html files.
4646
- For more examples, please refer to :doc:`../AT_Command_Examples/Web_server_AT_Examples`.
4747

docs/zh_CN/AT_Command_Examples/Web_server_AT_Examples.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Web Server AT 示例
6565
6666
AT+CIPMUX=1
6767

68-
#. 创建 WEB server,端口:80,最大连接时间:25 s(默认最大为 60 s)。
68+
#. 创建 web server,端口:80,最大连接时间:25 s(默认最大为 60 s)。
6969

7070

7171
- Command
@@ -87,7 +87,7 @@ Web Server AT 示例
8787
""""""""""""""""""""""""
8888

8989
在配网设备连接到 ESP 设备后,即可发送 HTTP 请求,配置待接入的路由器的信息:(注意,浏览器配网不支持配网设备作为待接入 AP)。
90-
在浏览器中输入 WEB server 默认的 IP 地址(如果未设置 ESP 设备的 SoftAP IP 地址,默认为 192.168.4.1,您可以通过 AT+CIPAP? 命令查询当前的 SoftAP IP 地址),打开配网界面,输入拟连接的路由器的 ssid、password,点击“开始配网”即可开始配网:
90+
在浏览器中输入 web server 默认的 IP 地址(如果未设置 ESP 设备的 SoftAP IP 地址,默认为 192.168.4.1,您可以通过 AT+CIPAP? 命令查询当前的 SoftAP IP 地址),打开配网界面,输入拟连接的路由器的 ssid、password,点击“开始配网”即可开始配网:
9191

9292
.. figure:: ../../_static/Web_server/web_brower_open_html.png
9393
:align: center
@@ -96,7 +96,7 @@ Web Server AT 示例
9696

9797
浏览器打开配网界面
9898

99-
用户也可以点击配网页面中 SSID 输入框右方的下拉框,查看 ESP 模块附近的 AP列表,选择目标 AP 并输入 password 后,点击“开始配网”即可启动配网:
99+
用户也可以点击配网页面中 SSID 输入框右方的下拉框,查看 ESP 模块附近的 AP 列表,选择目标 AP 并输入 password 后,点击“开始配网”即可启动配网:
100100

101101
.. figure:: ../../_static/Web_server/web_brower_get_ap_record.png
102102
:align: center
@@ -259,14 +259,14 @@ Web Server AT 示例
259259
260260
AT+CWMODE=3
261261

262-
#. 设置 SoftAP 的 ssid 和 password(如设置默认连接 ssid 为 `pos_softap`,无密码的 Wi-Fi)。
262+
#. 设置 SoftAP 的 ssid 和 password(如设置默认连接 ssid 为 `pos_softap`,password 为 `espressif`)。
263263

264264

265265
- Command
266266

267267
::
268268
269-
AT+CWSAP="pos_softap","",11,0,3
269+
AT+CWSAP="pos_softap","espressif",11,3,3
270270

271271
#. 使能多连接。
272272

@@ -277,7 +277,7 @@ Web Server AT 示例
277277
278278
AT+CIPMUX=1
279279

280-
#. 创建 WEB server,端口:80,最大连接时间:50 s(默认最大为 60 s)。
280+
#. 创建 web server,端口:80,最大连接时间:50 s(默认最大为 60 s)。
281281

282282

283283
- Command
@@ -424,6 +424,8 @@ Web Server AT 示例
424424

425425
**说明** 2:配网页面收到提示“连接 AP 失败”。请检查配网设备的 Wi-Fi 连接功能是否打开,检查 ESP 模块的 Wi-Fi AP 是否正确开启,以及 AP 的 ssid、password 是否按上述步骤进行配置。
426426

427+
**说明** 3:配网页面收到提示“系统保存的 Wi-Fi 配置过期”。请手动使用手机连接 ESP 模块 AP,确认 ESP 模块的 ssid、password 已经按照上述步骤进行配置。
428+
427429
使用微信小程序进行 OTA 固件升级
428430
---------------------------------
429-
微信小程序支持在线完成 ESP 设备的固件升级,具体步骤与使用浏览器进行 OTA 固件升级类似,请参考上文
431+
微信小程序支持在线完成 ESP 设备的固件升级,请参考上述 `配置 ESP 设备参数`_ 的具体步骤完成 ESP 模块的配置(如果已经在配网时完成配置,不用重复配置)。完成配置后,设备执行 OTA 固件升级的流程与使用浏览器进行 OTA 固件升级类似,请参考 `使用浏览器进行 OTA 固件升级`_

0 commit comments

Comments
 (0)