I have tested my android app (client), it is able to connect to another android phone (server) I created, by TCP connection via the same wifi network. So my android app isn't the problem.
However, when it comes to cc3200, i set cc3200 up as an access point TCP server and want to connect my android (client) to it. The access point is set up as a static ip.
// Enable DHCP client //lRetVal = sl_NetCfgSet(SL_IPV4_STA_P2P_CL_DHCP_ENABLE,1,1,&ucVal); //ASSERT_ON_ERROR(lRetVal); //SET STATICIP SlNetCfgIpV4Args_t ipV4; ipV4.ipV4 = (unsigned long)SL_IPV4_VAL(10,0,0,90); // unsigned long IP address ipV4.ipV4Mask = (unsigned long)SL_IPV4_VAL(255,255,255,0); // unsigned long Subnet mask for this AP/P2P ipV4.ipV4Gateway = (unsigned long)SL_IPV4_VAL(10,0,0,1); // unsigned long Default gateway address ipV4.ipV4DnsServer = (unsigned long)SL_IPV4_VAL(160,85,193,100); // unsigned long DNS server address lRetVal = sl_NetCfgSet(SL_IPV4_STA_P2P_CL_STATIC_ENABLE, IPCONFIG_MODE_ENABLE_IPV4, sizeof(SlNetCfgIpV4Args_t), (unsigned char *) &ipV4); ASSERT_ON_ERROR(lRetVal); Report("\n\rSet up static ip already");
I added the above codes into ConfigureSimpleLinkToDefaultState()-Function and removed the DHCP-Enable code, however the ip address leased to client is still different?
My android device is unable to connect to 10.0.0.90? Is it because my static ip is not successfully set up?
Thanks, I have been stuck on the CC3200 part for 2 weeks now..