From 4afcfe0b42c014c69bc51f070262001d9cfda077 Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Wed, 11 Sep 2019 22:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B7=BB=E5=8A=A0=E3=80=91=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8B=E8=BD=BD=E5=8A=9F=E8=83=BD=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyong <1521761801@qq.com> --- README.md | 3 +++ SConscript | 5 ++++- docs/samples.md | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b83d482..2ad914f 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ RT-Thread online packages [*] WebClient: A HTTP/HTTPS Client for RT-Thread [ ] Enable debug log output [ ] Enable webclient GET/POST samples + [ ] Enable file download feature support Select TLS mode (Not support) ---> (x) Not support ( ) SAL TLS support @@ -70,6 +71,8 @@ RT-Thread online packages **Enable webclient GET/POST samples** :添加示例代码; +**Enable file download feature support** :开启文件下载功能支持(`wget` 命令支持); + **Select TLS mode** :配置开启 HTTPS 支持,选择支持的模式; - **Not support**:不支持 TLS 功能; diff --git a/SConscript b/SConscript index 86086e9..ae8dbd4 100644 --- a/SConscript +++ b/SConscript @@ -3,7 +3,10 @@ from building import * cwd = GetCurrentDir() path = [cwd + '/inc'] -src = Glob('src/*.c') +src = Glob('src/webclient.c') + +if GetDepend(['WEBCLIENT_USING_FILE_DOWMLOAD']): + src += Glob('src/webclient_file.c') if GetDepend(['WEBCLIENT_USING_SAMPLES']): src += Glob('samples/*.c') diff --git a/docs/samples.md b/docs/samples.md index 41eaf3b..5ac0dab 100644 --- a/docs/samples.md +++ b/docs/samples.md @@ -25,6 +25,7 @@ RT-Thread online packages [*] WebClient: A HTTP/HTTPS Client for RT-Thread [ ] Enable debug log output [*] Enable webclient GET/POST samples # 开启 WebClient 测试例程 + [ ] Enable file download feature support Select TLS mode (Not support) ---> Version (latest) ---> # 开启使用最新版本软件包 ```