WebNet 软件包是自主研发的,基于 HTTP 协议的 Server 服务器实现,它不仅提供设备与 HTTP Client 通讯的基本功能,而且支持多种模块功能扩展,且资源占用少、可裁剪性强,充分满足开发者对嵌入式设备服务器的功能需求。
WebNet 软件包功能特点如下:
更多软件包功能特点介绍请查看 详细介绍。
| 名称 | 说明 |
|---|---|
| docs | 文档目录 |
| inc | 头文件目录 |
| src | 源文件目录 |
| module | 功能模块文件目录 |
| samples | 示例文件目录 |
| LICENSE | 许可证文件 |
| README.md | 软件包使用说明 |
| SConscript | RT-Thread 默认的构建脚本 |
WebNet 软件包遵循 GPL2+ 商业双许可。该软件包可以根据 GUN 标准使用通用公共许可证,详见 LICENSE 文件。如果用于商业应用,可以通过电子邮箱 与我们联系获取商业许可。
使用 WebNet软件包需要在 RT-Thread 的包管理中选中它,具体路径如下:
RT-Thread online packages
IoT - internet of things --->
[*] WebNet: A HTTP Server for RT-Thread
(80) Server listen port
(16) Maximum number of server connections
(/webnet) Server root directory
Select supported modules --->
[ ] LOG: Enanle output log support
[ ] AUTH: Enanle basic HTTP authentication support
[ ] CGI: Enanle Common Gateway Interface support
[ ] ASP: Enanle Active Server Pages support
[ ] SSI: Enanle Server Side Includes support
[ ] INDEX: Enanle list all the file in the directory support
[ ] ALIAS: Enanle alias support
[ ] DAV: Enanle Web-based Distributed Authoring and Versioning support
[ ] UPLOAD: Enanle upload file support
[ ] GZIP: Enable compressed file support by GZIP
(0) CACHE: Configure cache level
[ ] Enable webnet samples
Version (latest) --->
Server listen port:配置服务器监听端口号;
Maximum number of server connections:配置服务器最大连接数量;
Server root directory:配置服务器根目录路径;
Select supported modules:选择服务器支持的功能模块;
Enable webnet samples :配置添加服务器示例文件;
Version:配置软件包版本。
配置完成后让 RT-Thread 的包管理器自动更新,或者使用 pkgs --update 命令更新包到 BSP 中。
/docs 文件夹下,使用软件包进行开发前请务必查看。