Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QJ_500-7c
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
QJ_500-7c
Commits
2ab26c75
Commit
2ab26c75
authored
Nov 01, 2024
by
李延凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加为wifi启动函数调用, 优化wifi任务的ram占用
parent
82ea894f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
main_user.c
qianjiang/main/main_user.c
+2
-7
sdkconfig
qianjiang/sdkconfig
+2
-2
http_service.c
qianjiang/source/http_user/http_service.c
+2
-2
No files found.
qianjiang/main/main_user.c
View file @
2ab26c75
...
...
@@ -27,7 +27,7 @@
#include "app_Ble_User.h"
#include "app_BT_User.h"
#include "bt_app_hf.h"
#include "wifi_service.h"
// const float Inter_SW = 1.1;
...
...
@@ -94,7 +94,7 @@ static void Sys_Run_Tasks(void *arg)
gatts_Ble_User_Task_Event_Del
();
vTaskDelay
(
300
);
gatts_App_Ble_DeInit
();
// simple_ota_mai
n();
(
void
)
wifi_turn_o
n
();
Wifi_OTA_Request
=
2
;
}
...
...
@@ -128,11 +128,6 @@ static void Sys_Run_Tasks(void *arg)
}
}
if
(
Wifi_OTA_Request
==
2
)
{
// break;
}
vTaskDelay
(
1
);
}
...
...
qianjiang/sdkconfig
View file @
2ab26c75
...
...
@@ -1144,8 +1144,8 @@ CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0=y
# CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 is not set
CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN=752
CONFIG_ESP32_WIFI_MGMT_SBUF_NUM=32
CONFIG_ESP32_WIFI_IRAM_OPT=y
CONFIG_ESP32_WIFI_RX_IRAM_OPT=y
# CONFIG_ESP32_WIFI_IRAM_OPT is not set
# CONFIG_ESP32_WIFI_RX_IRAM_OPT is not set
CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE=y
CONFIG_ESP32_WIFI_ENABLE_WPA3_OWE_STA=y
# CONFIG_ESP_WIFI_SLP_IRAM_OPT is not set
...
...
qianjiang/source/http_user/http_service.c
View file @
2ab26c75
...
...
@@ -91,7 +91,7 @@ static esp_err_t http_ota_app_handler(httpd_req_t *req)
while
(
remaining
>
0
)
{
/* Read the data for the request */
if
((
ret
=
httpd_req_recv
(
req
,
http_buffer
,
MIN
(
remaining
,
sizeof
(
http_buffer
)
)))
<=
0
)
if
((
ret
=
httpd_req_recv
(
req
,
http_buffer
,
MIN
(
remaining
,
MAX_CACHE_SIZE
)))
<=
0
)
{
if
(
ret
==
HTTPD_SOCK_ERR_TIMEOUT
)
{
...
...
@@ -129,7 +129,7 @@ static esp_err_t http_ota_app_handler(httpd_req_t *req)
{
remaining
-=
ret
;
recv_block
++
;
if
((
recv_block
%
4
)
==
0
)
if
((
recv_block
%
16
)
==
0
)
{
percent
=
100
.
0
-
(
double
)(
remaining
*
100
)
/
(
double
)
total
;
ESP_LOGI
(
TAG
,
"---- ota process: %.2f%%"
,
percent
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment