【添加】文件下载功能配置选项

Signed-off-by: chenyong <1521761801@qq.com>
master
chenyong 6 years ago
parent edd613e449
commit 4afcfe0b42

@ -59,6 +59,7 @@ RT-Thread online packages
[*] WebClient: A HTTP/HTTPS Client for RT-Thread [*] WebClient: A HTTP/HTTPS Client for RT-Thread
[ ] Enable debug log output [ ] Enable debug log output
[ ] Enable webclient GET/POST samples [ ] Enable webclient GET/POST samples
[ ] Enable file download feature support
Select TLS mode (Not support) ---> Select TLS mode (Not support) --->
(x) Not support (x) Not support
( ) SAL TLS support ( ) SAL TLS support
@ -70,6 +71,8 @@ RT-Thread online packages
**Enable webclient GET/POST samples** :添加示例代码; **Enable webclient GET/POST samples** :添加示例代码;
**Enable file download feature support** :开启文件下载功能支持(`wget` 命令支持);
**Select TLS mode** :配置开启 HTTPS 支持,选择支持的模式; **Select TLS mode** :配置开启 HTTPS 支持,选择支持的模式;
- **Not support**:不支持 TLS 功能; - **Not support**:不支持 TLS 功能;

@ -3,7 +3,10 @@ from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
path = [cwd + '/inc'] 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']): if GetDepend(['WEBCLIENT_USING_SAMPLES']):
src += Glob('samples/*.c') src += Glob('samples/*.c')

@ -25,6 +25,7 @@ RT-Thread online packages
[*] WebClient: A HTTP/HTTPS Client for RT-Thread [*] WebClient: A HTTP/HTTPS Client for RT-Thread
[ ] Enable debug log output [ ] Enable debug log output
[*] Enable webclient GET/POST samples # 开启 WebClient 测试例程 [*] Enable webclient GET/POST samples # 开启 WebClient 测试例程
[ ] Enable file download feature support
Select TLS mode (Not support) ---> Select TLS mode (Not support) --->
Version (latest) ---> # 开启使用最新版本软件包 Version (latest) ---> # 开启使用最新版本软件包
``` ```

Loading…
Cancel
Save