Commit 84ae2579499819eb4ad9a91df4c441eb8be1d6fb

Authored by Imanol-Mikel Barba Sabariego
1 parent 737124c7

--no commit message

Project/applications/smartcities/example-code/report.txt 0 → 100644
  1 +Scanning sensors...
  2 +1 sensor detected...
  3 +Connecting to wifi...
  4 +SSID = despatx-revistes
  5 +Wep key = maquetarmaquetmaquetarmaquetar
  6 +Passphrase = maquetarmaquetar
  7 +User =
  8 +Password =
  9 +Encryption type = 4
  10 +Geo Localization = asdfgh
  11 +wpa detected
  12 +WiFi Connect indication: Connected
  13 +Connected to: 00:1D:7E:BC:D7:FE
  14 +IP: 192.168.1.142
  15 +Received timestamp 3609928376
  16 +Disconecting wifi...
  17 +WIFI_DISCONNECT_SUCCESS
  18 +WiFi Connect indication: Failed
  19 +time (absolute): 3609928380
  20 +time mod LONG_PERIOD: 0
  21 +time mod SHORT_PERIOD: 0
  22 +Collecting data...
  23 +Data collected...
  24 +time (absolute): 3609928380
  25 +time mod LONG_PERIOD: 0
  26 +time mod SHORT_PERIOD: 0
  27 +timestamp (absolute): 3609928368
  28 +timestamp mod LONG_PERIOD: 144
  29 +timestamp mod SHORT_PERIOD: 48
  30 +Timestamping data...
  31 +Data allocated...
  32 +Calling timestamp_data...
  33 +Finished timestamp_data...
  34 +Data is: 123456,24/5/2014T15:52:48Returning timestamped data...
  35 +Putting data in buffer...
  36 +For 0 and 0
  37 +Data is now in buffer...
  38 +mirant memoria
  39 +Memòria disponible en bytes segons:
  40 +- free: 33736 -3736
  41 +mem ocupada=-3736
  42 +time (absolute): 3609928380
  43 +time mod LONG_PERIOD: 0
  44 +time mod SHORT_PERIOD: 0
  45 +Time to sleep! for 60 seconds
  46 +time (absolute): 3609928440
  47 +time mod LONG_PERIOD: 0
  48 +time mod SHORT_PERIOD: 0
  49 +Collecting data...
  50 +Data collected...
  51 +time (absolute): 3609928440
  52 +time mod LONG_PERIOD: 0
  53 +time mod SHORT_PERIOD: 0
  54 +timestamp (absolute): 3609928368
  55 +timestamp mod LONG_PERIOD: 144
  56 +timestamp mod SHORT_PERIOD: 48
  57 +Timestamping data...
  58 +Data allocated...
  59 +Calling timestamp_data...
  60 +Finished timestamp_data...
  61 +Data is: 123456,24/5/2014T15:52:48Returning timestamped data...
  62 +Putting data in buffer...
  63 +For 1 and 1
0 \ No newline at end of file 64 \ No newline at end of file
Project/applications/smartcities/main2.c
@@ -132,7 +132,7 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){ @@ -132,7 +132,7 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){
132 printf("Calling timestamp_data...\r\n"); 132 printf("Calling timestamp_data...\r\n");
133 cooked_data[i]=timestamp_data(value[i], t); 133 cooked_data[i]=timestamp_data(value[i], t);
134 printf("Finished timestamp_data...\r\n"); 134 printf("Finished timestamp_data...\r\n");
135 - printf("Data is: %s",cooked_data[i]); 135 + printf("Data is: %s\r\n",cooked_data[i]);
136 chHeapFree(value[i]); 136 chHeapFree(value[i]);
137 137
138 } 138 }