diff --git a/Project/applications/smartcities/httpClient.c b/Project/applications/smartcities/httpClient.c index cc2a53d..7d235d6 100644 --- a/Project/applications/smartcities/httpClient.c +++ b/Project/applications/smartcities/httpClient.c @@ -87,10 +87,11 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) } /*local_ip.addr = 0;//getip netconn_bind(neocon, IP_ADDR_ANY, LOCAL_PORT); //88 is provisional local port.*/ - netconn_connect(neocon, &remote_ip, DEFAULT_REMOTE_PORT); - while(connection_ok !=0) // != ERR_OK - { + { + printf("httpRequest: Establishing connection\r\n"); + netconn_connect(neocon, &remote_ip, DEFAULT_REMOTE_PORT); + // Send Request printf("httpRequest: Sending request\r\n"); netconn_write(neocon, request, request_size, NETCONN_NOCOPY);