mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 22:25:51 +00:00
xr809 functional config save, mqtt working, pins save, wifi save, mqtt save
This commit is contained in:
@ -170,14 +170,18 @@ static void tcp_server_thread( beken_thread_arg_t arg )
|
||||
if ( client_fd >= 0 )
|
||||
{
|
||||
#if PLATFORM_XR809
|
||||
#if DISABLE_SEPARATE_THREAD_FOR_EACH_TCP_CLIENT
|
||||
|
||||
#else
|
||||
OS_Thread_t clientThreadUnused ;
|
||||
#endif
|
||||
#endif
|
||||
os_strcpy( client_ip_str, inet_ntoa( client_addr.sin_addr ) );
|
||||
ADDLOG_DEBUG(LOG_FEATURE_HTTP, "TCP Client %s:%d connected, fd: %d", client_ip_str, client_addr.sin_port, client_fd );
|
||||
#if DISABLE_SEPARATE_THREAD_FOR_EACH_TCP_CLIENT
|
||||
// Use main server thread (blocking all other clients)
|
||||
// right now, I am getting OS_ThreadCreate everytime on XR809 platform
|
||||
tcp_client_thread(client_fd);
|
||||
tcp_client_thread((beken_thread_arg_t)client_fd);
|
||||
#else
|
||||
// Create separate thread for client
|
||||
if ( kNoErr !=
|
||||
|
||||
@ -783,7 +783,7 @@ int HTTP_ProcessPacket(http_request_t *request) {
|
||||
}
|
||||
#if PLATFORM_XR809
|
||||
//uint32_t flash_read(uint32_t flash, uint32_t addr,void *buf, uint32_t size)
|
||||
#define FLASH_INDEX_XR809 0
|
||||
#define FLASH_INDEX_XR809 0
|
||||
res = flash_read(FLASH_INDEX_XR809, nowOfs, buffer, now);
|
||||
#else
|
||||
res = tuya_hal_flash_read (nowOfs, buffer,now);
|
||||
|
||||
Reference in New Issue
Block a user