Hi,
I want to connect my TM4C1294 device to the C server without using RTOS and I have gone through the tivaware examples but unable to use it as client program.
Kindly help!
Regards,
SS.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I want to connect my TM4C1294 device to the C server without using RTOS and I have gone through the tivaware examples but unable to use it as client program.
Kindly help!
Regards,
SS.
Hello Sai,
Thanks for replying.
I mean normal C server which is listening to a port in one PC and I want to connect to this server with Tm4c1294 board through Ethernet using LWIP stack.
I have gone through :

I am using this code:
void my_client_init(void)
{
struct tcp_pcb *pcb;
struct ip_addr dest;
err_t ret_val;
IP4_ADDR(&dest, 192, 168, 1, 15);
pcb = tcp_new();
tcp_bind(pcb, IP_ADDR_ANY, 8889);
ret_val = tcp_connect(pcb, &dest, 8888, client_connected);
if (ret_val != ERR_OK)
UARTprintf("\tcp_connect(): Errors on return value, returned value is %d\n", ret_val);
}
but its not working.
Regards,
SS