From 4a31dadf56237a9c5f252ab7b6777b24a20cfe1d Mon Sep 17 00:00:00 2001 From: Ferràn Quer i Guerrero Date: Sun, 6 Apr 2014 21:18:48 +0000 Subject: [PATCH] --- Project/applications/smartcities/httpClient.c | 2 +- Project/applications/smartcities/include/httpClient.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- libgit2 0.22.2