From 1c2913c9f7a7e84f1f0a4b615a37ac3bb4c4db82 Mon Sep 17 00:00:00 2001 From: Ferràn Quer i Guerrero Date: Thu, 8 May 2014 08:20:29 +0000 Subject: [PATCH] --- Project/applications/smartcities/httpClient.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- libgit2 0.22.2