diff --git a/Project/applications/smartcities/httpClient.c b/Project/applications/smartcities/httpClient.c index 942828f..610f345 100644 --- a/Project/applications/smartcities/httpClient.c +++ b/Project/applications/smartcities/httpClient.c @@ -102,7 +102,7 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) //neocon->recv_timeout = 5000; // for 5s connection_ok = netconn_recv(neocon, &netBufs); printf("res recv= %d\r\n",connection_ok); - netconn_close(neocon); + netconn_disconnect(neocon); } // Manage Response printf("httpRequest: Response received. Let's parse the information\r\n");