From 84ae2579499819eb4ad9a91df4c441eb8be1d6fb Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Sat, 24 May 2014 13:55:38 +0000 Subject: [PATCH] --- Project/applications/smartcities/example-code/report.txt | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Project/applications/smartcities/main2.c | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 Project/applications/smartcities/example-code/report.txt diff --git a/Project/applications/smartcities/example-code/report.txt b/Project/applications/smartcities/example-code/report.txt new file mode 100644 index 0000000..56bc86c --- /dev/null +++ b/Project/applications/smartcities/example-code/report.txt @@ -0,0 +1,63 @@ +Scanning sensors... +1 sensor detected... +Connecting to wifi... +SSID = despatx-revistes +Wep key = maquetarmaquetmaquetarmaquetar +Passphrase = maquetarmaquetar +User = +Password = +Encryption type = 4 +Geo Localization = asdfgh +wpa detected +WiFi Connect indication: Connected +Connected to: 00:1D:7E:BC:D7:FE +IP: 192.168.1.142 +Received timestamp 3609928376 +Disconecting wifi... +WIFI_DISCONNECT_SUCCESS +WiFi Connect indication: Failed +time (absolute): 3609928380 +time mod LONG_PERIOD: 0 +time mod SHORT_PERIOD: 0 +Collecting data... +Data collected... +time (absolute): 3609928380 +time mod LONG_PERIOD: 0 +time mod SHORT_PERIOD: 0 +timestamp (absolute): 3609928368 +timestamp mod LONG_PERIOD: 144 +timestamp mod SHORT_PERIOD: 48 +Timestamping data... +Data allocated... +Calling timestamp_data... +Finished timestamp_data... +Data is: 123456,24/5/2014T15:52:48Returning timestamped data... +Putting data in buffer... +For 0 and 0 +Data is now in buffer... +mirant memoria +Memòria disponible en bytes segons: +- free: 33736 -3736 +mem ocupada=-3736 +time (absolute): 3609928380 +time mod LONG_PERIOD: 0 +time mod SHORT_PERIOD: 0 +Time to sleep! for 60 seconds +time (absolute): 3609928440 +time mod LONG_PERIOD: 0 +time mod SHORT_PERIOD: 0 +Collecting data... +Data collected... +time (absolute): 3609928440 +time mod LONG_PERIOD: 0 +time mod SHORT_PERIOD: 0 +timestamp (absolute): 3609928368 +timestamp mod LONG_PERIOD: 144 +timestamp mod SHORT_PERIOD: 48 +Timestamping data... +Data allocated... +Calling timestamp_data... +Finished timestamp_data... +Data is: 123456,24/5/2014T15:52:48Returning timestamped data... +Putting data in buffer... +For 1 and 1 \ No newline at end of file diff --git a/Project/applications/smartcities/main2.c b/Project/applications/smartcities/main2.c index f595155..bf3cda5 100644 --- a/Project/applications/smartcities/main2.c +++ b/Project/applications/smartcities/main2.c @@ -132,7 +132,7 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){ printf("Calling timestamp_data...\r\n"); cooked_data[i]=timestamp_data(value[i], t); printf("Finished timestamp_data...\r\n"); - printf("Data is: %s",cooked_data[i]); + printf("Data is: %s\r\n",cooked_data[i]); chHeapFree(value[i]); } -- libgit2 0.22.2