Commit aa46a155048e969acfb90825fd407160b0708e59
1 parent
0dc0623d
--no commit message
Showing
1 changed file
with
1 additions
and
1 deletions
Project/applications/smartcities/httpClient.c
@@ -102,7 +102,7 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) | @@ -102,7 +102,7 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) | ||
102 | //neocon->recv_timeout = 5000; // for 5s | 102 | //neocon->recv_timeout = 5000; // for 5s |
103 | connection_ok = netconn_recv(neocon, &netBufs); | 103 | connection_ok = netconn_recv(neocon, &netBufs); |
104 | printf("res recv= %d\r\n",connection_ok); | 104 | printf("res recv= %d\r\n",connection_ok); |
105 | - netconn_close(neocon); | 105 | + netconn_disconnect(neocon); |
106 | } | 106 | } |
107 | // Manage Response | 107 | // Manage Response |
108 | printf("httpRequest: Response received. Let's parse the information\r\n"); | 108 | printf("httpRequest: Response received. Let's parse the information\r\n"); |