xr809 functional config save, mqtt working, pins save, wifi save, mqtt save

This commit is contained in:
openshwprojects
2022-02-15 00:23:04 +01:00
parent 740fffbc96
commit 50332533da
4 changed files with 35 additions and 17 deletions

View File

@ -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 !=

View File

@ -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);