mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-07 12:35:49 +00:00
fix GET/POST for all platforms, remove some not needed os_* mappings (os_strcpy, os_memset, etc)
* get and post to PLATFORM_ECR6600 * test * Update http_client.c * t * need timer * iotx_net_init ? * Update utils_timer.c * try os_time_get * try ENABLE_SEND_POSTANDGET on bl602 as welll * Update utils_net.h * add httpclient to boufallo mk * Update utils_timer.c * Update new_common.h * time * try ln882h * Update utils_timer.c * OS_STRCPY ETCCC * esp IDF * Update new_common.h * Update utils_timer.c * Update new_common.h * remove hal_machw_time_past dependency * lwip_close_force better * stub * simplifyu * omg typo * revert * remove os_strcpy * remove os_strlen * memmove * os_strcmp * os_strstr * mem func * try on xradio * #define lwip_close_force(x) lwip_close(x) * SWAP * typo * Update utils_timer.c * rtl * Update new_common.h * tr * #include <stdint.h> is reduntant * clean hdr * those headers could be common * those headers could be common * disable --------- Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
This commit is contained in:
@ -72,7 +72,7 @@ static void tcp_client_thread(beken_thread_arg_t arg)
|
||||
goto exit;
|
||||
}
|
||||
http_request_t request;
|
||||
os_memset(&request, 0, sizeof(request));
|
||||
memset(&request, 0, sizeof(request));
|
||||
|
||||
request.fd = fd;
|
||||
request.received = buf;
|
||||
@ -184,7 +184,7 @@ static void tcp_server_thread(beken_thread_arg_t arg)
|
||||
OS_Thread_t clientThreadUnused;
|
||||
#endif
|
||||
#endif
|
||||
os_strcpy(client_ip_str, inet_ntoa(client_addr.sin_addr));
|
||||
strcpy(client_ip_str, inet_ntoa(client_addr.sin_addr));
|
||||
#if DISABLE_SEPARATE_THREAD_FOR_EACH_TCP_CLIENT
|
||||
//ADDLOG_ERROR(LOG_FEATURE_HTTP, "HTTP [single thread] Client %s:%d connected, fd: %d", client_ip_str, client_addr.sin_port, client_fd);
|
||||
// Use main server thread (blocking all other clients)
|
||||
|
||||
@ -577,7 +577,7 @@ static int http_rest_get_lfs_file(http_request_t* request) {
|
||||
lfs_dir_t* dir;
|
||||
ADDLOG_DEBUG(LOG_FEATURE_API, "%s is a folder", fpath);
|
||||
dir = os_malloc(sizeof(lfs_dir_t));
|
||||
os_memset(dir, 0, sizeof(*dir));
|
||||
memset(dir, 0, sizeof(*dir));
|
||||
// if the thing is a folder.
|
||||
lfsres = lfs_dir_open(&lfs, dir, fpath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user