How to add TCP-CLient task in one of the uIP sample?

Hi,

I have running sample code for my device (LPC1768/69). I am using FreeRTOS 10.3.1.
I got the code from the demo folder. It has uIP TCP/IP stack. Starting Web Server was straight forward.

I want to add another task besides this one;

/* Create the uIP task. The WEB server runs in this task. */
// xTaskCreate( vuIP_Task, “uIP”, mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );

It should run a TCP-Client. I need to send some commands to a TCP-Server and in return I need to read some other commands back.

Maybe a couple pointers if you have any. It would be greatly appreciated.

xTaskCreate( vuIP_Task, “uIP”, mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );

The call that you show starts up the uIP kernel task. It handles all state machines of the uIP logic.

The term mainBASIC_WEB_STACK_SIZE is misleading: the task does TCP/UDP/ICMP/ARP etc, but it does not handle HTTP, the “web layer”.

FreeRTOS does not support uIP anymore. The newer stack lwIP is supported, and FreeRTOS has its own stack called FreeRTOS+TCP.
We are happy to answer all questions about the latter.