Commit 1c2913c9f7a7e84f1f0a4b615a37ac3bb4c4db82

Authored by Ferràn Quer i Guerrero
1 parent 3fadb773

--no commit message

Project/applications/smartcities/httpClient.c
@@ -87,10 +87,11 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) @@ -87,10 +87,11 @@ int httpRequest(struct httpHeaders head, char* content, int content_size)
87 } 87 }
88 /*local_ip.addr = 0;//getip 88 /*local_ip.addr = 0;//getip
89 netconn_bind(neocon, IP_ADDR_ANY, LOCAL_PORT); //88 is provisional local port.*/ 89 netconn_bind(neocon, IP_ADDR_ANY, LOCAL_PORT); //88 is provisional local port.*/
90 - netconn_connect(neocon, &remote_ip, DEFAULT_REMOTE_PORT);  
91 -  
92 while(connection_ok !=0) // != ERR_OK 90 while(connection_ok !=0) // != ERR_OK
93 - { 91 + {
  92 + printf("httpRequest: Establishing connection\r\n");
  93 + netconn_connect(neocon, &remote_ip, DEFAULT_REMOTE_PORT);
  94 +
94 // Send Request 95 // Send Request
95 printf("httpRequest: Sending request\r\n"); 96 printf("httpRequest: Sending request\r\n");
96 netconn_write(neocon, request, request_size, NETCONN_NOCOPY); 97 netconn_write(neocon, request, request_size, NETCONN_NOCOPY);