Hi,
I made MCU as a tcp client and it works fine with server . only thing is that connect function takes time to connect with server, I need to reduce that time. I am attaching a snippet of code where connect function is meant for connecting to server. it takes time to revert with response code.
while(connect(lSocket, (struct sockaddr *)&sLocalAddr, sizeof(sLocalAddr)) < 0)
{
lcd_put_cur(1, 0);
lcd_send_string("Server Not Ready");
SysCtlDelay(g_ui32SysClock);
if(LC_RMT_PIN)
{
MODE=LOCAL;
goto Local;
}
lcd_put_cur(1, 0);
lcd_send_string("Waiting... ");
}
Regards
Khodidas