Hi ,
I downloaded the basic wifi application from TI website http://processors.wiki.ti.com/index.php/CC3000_Basic_Wi-Fi_example_application_for_MSP430.
With this sample application I am able to send/receive the UDP packets. But I need to use the TCP/IP for my app for which I modified the basic wifi application
by changing the basic_wifi_application.c in the following way,
For opening the TCP socket,
- ulSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
+ ulSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
For sending the TCP packet,
- sendto(ulSocket, pcData, ulDataLength, 0, &tSocketAddr, sizeof(sockaddr));
+ send(ulSocket, pcData, ulDataLength, 0);
But with the above changes I am not receiving any data at the laptop's wireshark.
Please let me know if the modification for sending the tcp packets is correct .
Thanks in advance.