mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 00:32:37 +01:00 
			
		
		
		
	Allow setting stack size via user defines
Based on https://github.com/me-no-dev/AsyncTCP/pull/89 . This is a trivial change and potentially useful.
This commit is contained in:
		| @@ -63,7 +63,7 @@ static bool _start_asyncsock_task(void) | |||||||
|         xTaskCreateUniversal( |         xTaskCreateUniversal( | ||||||
|             _asynctcpsock_task, |             _asynctcpsock_task, | ||||||
|             "asyncTcpSock", |             "asyncTcpSock", | ||||||
|             8192 * 2, |             CONFIG_ASYNC_TCP_STACK, | ||||||
|             NULL, |             NULL, | ||||||
|             3,                              // <-- TODO: make priority a compile-time parameter |             3,                              // <-- TODO: make priority a compile-time parameter | ||||||
|             &_asyncsock_service_task_handle, |             &_asyncsock_service_task_handle, | ||||||
|   | |||||||
| @@ -44,6 +44,9 @@ extern "C" { | |||||||
| #define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core | #define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core | ||||||
| #define CONFIG_ASYNC_TCP_USE_WDT 1 //if enabled, adds between 33us and 200us per event | #define CONFIG_ASYNC_TCP_USE_WDT 1 //if enabled, adds between 33us and 200us per event | ||||||
| #endif | #endif | ||||||
|  | #ifndef CONFIG_ASYNC_TCP_STACK | ||||||
|  | #define CONFIG_ASYNC_TCP_STACK 16384  // 8192 * 2 | ||||||
|  | #endif | ||||||
|  |  | ||||||
| class AsyncClient; | class AsyncClient; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user