Commit 4a31dadf56237a9c5f252ab7b6777b24a20cfe1d
1 parent
0cfa56b6
--no commit message
Showing
2 changed files
with
4 additions
and
1 deletions
Project/applications/smartcities/httpClient.c
... | ... | @@ -67,7 +67,7 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) |
67 | 67 | |
68 | 68 | // Set connection |
69 | 69 | printf("httpRequest: Setting connection\r\n"); |
70 | - remote_ip.addr = ipaddr_addr(DEFAULT_REMOTE_IP); | |
70 | + remote_ip.addr = ipaddr_addr(SERVER_IP); | |
71 | 71 | |
72 | 72 | while(libwismart_IsConnected() != WISMART_CONNECTED){ |
73 | 73 | DBG("Waiting WiFi Connection.."); | ... | ... |
Project/applications/smartcities/include/httpClient.h
... | ... | @@ -16,6 +16,9 @@ |
16 | 16 | #define DBG(fmt,...) if(1){printf("[SRV] "fmt"\r\n", ##__VA_ARGS__);}else{({});} |
17 | 17 | #define DBG_WARNING(fmt,...) if(1){printf("[SRV_WARNING] "fmt"\r\n", ##__VA_ARGS__);}else{({});} |
18 | 18 | |
19 | +/* | |
20 | + * No fem servir DEFAULT_REMOTE_IP. Fem servir en canvi SERVER_IP, definida a globals.h | |
21 | + */ | |
19 | 22 | #define DEFAULT_REMOTE_IP "147.83.2.135" // www.upc.edu |
20 | 23 | #define DEFAULT_REMOTE_PORT 80 |
21 | 24 | #define ENDL "\r\n" | ... | ... |