diff --git a/Project/applications/smartcities/httpClient.c b/Project/applications/smartcities/httpClient.c index ab47aeb..6ddb3d4 100644 --- a/Project/applications/smartcities/httpClient.c +++ b/Project/applications/smartcities/httpClient.c @@ -67,7 +67,7 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) // Set connection printf("httpRequest: Setting connection\r\n"); - remote_ip.addr = ipaddr_addr(DEFAULT_REMOTE_IP); + remote_ip.addr = ipaddr_addr(SERVER_IP); while(libwismart_IsConnected() != WISMART_CONNECTED){ DBG("Waiting WiFi Connection.."); diff --git a/Project/applications/smartcities/include/httpClient.h b/Project/applications/smartcities/include/httpClient.h index e5f8a86..a19dcc6 100644 --- a/Project/applications/smartcities/include/httpClient.h +++ b/Project/applications/smartcities/include/httpClient.h @@ -16,6 +16,9 @@ #define DBG(fmt,...) if(1){printf("[SRV] "fmt"\r\n", ##__VA_ARGS__);}else{({});} #define DBG_WARNING(fmt,...) if(1){printf("[SRV_WARNING] "fmt"\r\n", ##__VA_ARGS__);}else{({});} +/* + * No fem servir DEFAULT_REMOTE_IP. Fem servir en canvi SERVER_IP, definida a globals.h + */ #define DEFAULT_REMOTE_IP "147.83.2.135" // www.upc.edu #define DEFAULT_REMOTE_PORT 80 #define ENDL "\r\n"