Commit 4115cac3f1ddc410efc6f8c8ba4a3fcca10ca19c
1 parent
ac6a3343
--no commit message
Showing
11 changed files
with
13 additions
and
0 deletions
Project/applications/smartcities/include/adc.h
Project/applications/smartcities/include/buffer.h
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | #define HARD_REACHED 2 |
12 | 12 | |
13 | 13 | #define DBG_BUFFER(fmt,...) printf("%c[1;35mbuffer.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
14 | +//#define DBG_BUFFER(fmt,...) printf("") | |
14 | 15 | |
15 | 16 | char** put_message(char* info, char** buf,uint32_t *index, uint32_t *buf_len); |
16 | 17 | int check_memory(void); | ... | ... |
Project/applications/smartcities/include/callbacks.h
... | ... | @@ -21,6 +21,7 @@ void softapMode_apStartedCb(int result); |
21 | 21 | void printWifiInfo(uint8_t wifiMode); |
22 | 22 | |
23 | 23 | #define DBG_CALLBACKS(fmt,...) printf("%c[1;35mcallbacks.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
24 | +//#define DBG_CALLBACKS(fmt,...) printf("") | |
24 | 25 | |
25 | 26 | extern uint8_t connected; |
26 | 27 | extern uint8_t timeout; | ... | ... |
Project/applications/smartcities/include/configServer.h
... | ... | @@ -13,6 +13,9 @@ |
13 | 13 | #define CONFIG_SERVER_DBG(fmt,...) printf("%c[1;35mconfigServer.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
14 | 14 | #define CONFIG_SERVER_DBG_WARNING(fmt,...) printf("%c[1;35mconfigServer.c:%c[1;33m[WARNING] "fmt"%c[1;00m",0x1B,0x1B,0x1B, ##__VA_ARGS__) |
15 | 15 | |
16 | +//#define CONFIG_SERVER_DBG(fmt,...) printf("") | |
17 | +//#define CONFIG_SERVER_DBG_WARNING(fmt,...) printf("") | |
18 | + | |
16 | 19 | void configServer_start(uint8_t enableApScan); |
17 | 20 | void configServer_connect(void); |
18 | 21 | uint32_t condigServer_dynamicCb(char* varName, char** varValue, uint8_t* varAllocType); | ... | ... |
Project/applications/smartcities/include/httpClient.h
... | ... | @@ -20,6 +20,7 @@ |
20 | 20 | #define CONTENT_TYPE_HEADER "Content-Type: application/json; charset=UTF-8" |
21 | 21 | |
22 | 22 | #define DBG_HTTP(fmt,...) printf("%c[1;35mhttpClient.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
23 | +//#define DBG_HTTP(fmt,...) printf("") | |
23 | 24 | |
24 | 25 | |
25 | 26 | typedef enum reqMethod | ... | ... |
Project/applications/smartcities/include/i2c.h
Project/applications/smartcities/include/json.h
... | ... | @@ -19,6 +19,7 @@ |
19 | 19 | #define JOIN_FREE_MEM 1 |
20 | 20 | |
21 | 21 | #define DBG_JSON(fmt,...) printf("%c[1;35mjson.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
22 | +//#define DBG_JSON(fmt,...) printf("") | |
22 | 23 | |
23 | 24 | uint8_t register_sensor(sensor sens); |
24 | 25 | char* prepare_json_observation_statement(char** data, uint32_t nObservations); | ... | ... |
Project/applications/smartcities/include/ntp.h
... | ... | @@ -19,6 +19,7 @@ |
19 | 19 | #include "globals.h" |
20 | 20 | |
21 | 21 | #define DBG_NTP(fmt,...) printf("%c[1;35mntp.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
22 | +//#define DBG_NTP(fmt,...) printf("") | |
22 | 23 | |
23 | 24 | #define LEAP_YEAR(Y) (((1970+Y)>0) && !((1970+Y)%4) && (((1970+Y)%100) || !((1970+Y)%400))) |
24 | 25 | #define NTP_PACKET_LENGTH 48 | ... | ... |
Project/applications/smartcities/include/sensors.h
... | ... | @@ -20,6 +20,7 @@ |
20 | 20 | #define BATTERY_ADDR 0x00 //SIEMPRE PRESENTE, NUNCA BUSCAR EN i2c_scan |
21 | 21 | |
22 | 22 | #define DBG_SENSORS(fmt,...) printf("%c[1;35msensors.c:%c[1;00m "fmt,0x1B,0x1B, ##__VA_ARGS__) |
23 | +//#define DBG_SENSORS(fmt,...) printf("") | |
23 | 24 | |
24 | 25 | typedef struct { |
25 | 26 | uint8_t ID; | ... | ... |
Project/applications/smartcities/include/timer-loop.h
Project/applications/smartcities/main.c