Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
srefgeqfeqrfg
arduino-esp32
提交
b0c6991b
A
arduino-esp32
项目概览
srefgeqfeqrfg
/
arduino-esp32
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arduino-esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b0c6991b
编写于
7月 05, 2018
作者:
M
me-no-dev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small adjustments to the web server
上级
8afdd71b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
3 deletion
+5
-3
libraries/WebServer/src/Parsing.cpp
libraries/WebServer/src/Parsing.cpp
+1
-1
libraries/WebServer/src/WebServer.cpp
libraries/WebServer/src/WebServer.cpp
+2
-0
libraries/WebServer/src/WebServer.h
libraries/WebServer/src/WebServer.h
+2
-2
未找到文件。
libraries/WebServer/src/Parsing.cpp
浏览文件 @
b0c6991b
...
...
@@ -359,7 +359,7 @@ uint8_t WebServer::_uploadReadByte(WiFiClient& client){
int
res
=
client
.
read
();
if
(
res
==
-
1
){
while
(
!
client
.
available
()
&&
client
.
connected
())
yield
(
);
delay
(
2
);
res
=
client
.
read
();
}
return
(
uint8_t
)
res
;
...
...
libraries/WebServer/src/WebServer.cpp
浏览文件 @
b0c6991b
...
...
@@ -94,11 +94,13 @@ WebServer::~WebServer() {
void
WebServer
::
begin
()
{
close
();
_server
.
begin
();
_server
.
setNoDelay
(
true
);
}
void
WebServer
::
begin
(
uint16_t
port
)
{
close
();
_server
.
begin
(
port
);
_server
.
setNoDelay
(
true
);
}
String
WebServer
::
_extractParam
(
String
&
authReq
,
const
String
&
param
,
const
char
delimit
){
...
...
libraries/WebServer/src/WebServer.h
浏览文件 @
b0c6991b
...
...
@@ -34,10 +34,10 @@ enum HTTPUploadStatus { UPLOAD_FILE_START, UPLOAD_FILE_WRITE, UPLOAD_FILE_END,
enum
HTTPClientStatus
{
HC_NONE
,
HC_WAIT_READ
,
HC_WAIT_CLOSE
};
enum
HTTPAuthMethod
{
BASIC_AUTH
,
DIGEST_AUTH
};
#define HTTP_DOWNLOAD_UNIT_SIZE 14
60
#define HTTP_DOWNLOAD_UNIT_SIZE 14
36
#ifndef HTTP_UPLOAD_BUFLEN
#define HTTP_UPLOAD_BUFLEN
2048
#define HTTP_UPLOAD_BUFLEN
1436
#endif
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录