Hi,
I want to create socket connection and send request to server when i press the GPIO pin. I am using cc3200 Launch pad for development.
Here is the code i implemented
#define SERVER_NAME "www.google.com"
signed char *g_Host = SERVER_NAME;
void GetWeather()
{
long IRetVal = -1;
unsigned int uiIP;
lRetVal = sl_NetAppDnsGetHostByName(g_Host, strlen((const char *)g_Host),
(unsigned long*)&uiIP, SL_AF_INET);
}
main()
{
//enable sw3 switch
Button_IF_Init(null,GetWeather);
//Some other task
// Connect to the internet using station mode
.......
.......
}
I am getting the below error while getting the getting the Ip ffrom host name
Please help me to resolve this issue.
Regards,
Sundar