Commit a802cbf56ea5f122c00edd2f3ae36a1cc6c419e3
1 parent
4d99fb0a
FINAL CODE
Showing
4 changed files
with
3596 additions
and
607 deletions
Project/applications/smartcities/json.c
... | ... | @@ -157,7 +157,6 @@ uint8_t send_json(char* statement, uint32_t length, char* provider_ID, char* sen |
157 | 157 | { |
158 | 158 | URL = (char*) chHeapAlloc(NULL,1+strlen(SERVER_HOSTNAME)); |
159 | 159 | strcpy(URL,SERVER_HOSTNAME); |
160 | - URL[strlen(SERVER_HOSTNAME)] = '\0'; | |
161 | 160 | #ifdef SERVER_VANILLA |
162 | 161 | //VANILLA SERVER (SENTILO) |
163 | 162 | DBG_JSON("Server is vanilla\r\n") | ... | ... |
Project/applications/smartcities/logger/ttyS0.log
No preview for this file type
Project/applications/smartcities/logger/ttyS0.log.2
0 → 100644
1 | +[1;35mmain.c:[1;00m [1;35m--------------WI-SENSE STARTED-------------[1;00m | |
2 | +[1;35mmain.c:[1;00m Connecting wifi... | |
3 | +[1;35mmain.c:[1;00m SSID = SERVER_WLAN | |
4 | +[1;35mmain.c:[1;00m Wep key = TGW2YHNKT9TW | |
5 | +[1;35mmain.c:[1;00m Passphrase = TGW2YHNKT9TW | |
6 | +[1;35mmain.c:[1;00m User = | |
7 | +[1;35mmain.c:[1;00m Password = | |
8 | +[1;35mmain.c:[1;00m Encryption type = 4 | |
9 | +[1;35mmain.c:[1;00m Geo Localization = 41.557255 2.096183 | |
10 | +[1;35mmain.c:[1;00m WPA network detected | |
11 | +[1;32mConnected[1;00m | |
12 | +Connected to: 00:26:5B:D9:0D:18 | |
13 | +[1;35mbuffer.c:[1;00m Checking available memory... | |
14 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33320 B[1;00m | |
15 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1384 B[1;00m | |
16 | +[1;31m[ALLOC] Allocated 120 bytes to 2000FCA8[1;00m | |
17 | +[1;31m[ALLOC] Allocated 32 bytes to 2000FC20[1;00m | |
18 | +[1;31m[ALLOC] Allocated 49 bytes to 2000FC48[1;00m | |
19 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
20 | +[1;31m[ALLOC] Allocated 64 bytes to 2000FEC0[1;00m | |
21 | +[1;32m[FREE] Freed bytes from 2000FC48[1;00m | |
22 | +[1;31m[ALLOC] Allocated 74 bytes to 2000FC20[1;00m | |
23 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
24 | +[1;31m[ALLOC] Allocated 82 bytes to 2000FEC0[1;00m | |
25 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
26 | +[1;31m[ALLOC] Allocated 92 bytes to 2000FC20[1;00m | |
27 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
28 | +[1;31m[ALLOC] Allocated 95 bytes to 2000FEC0[1;00m | |
29 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
30 | +[1;31m[ALLOC] Allocated 109 bytes to 2000FF28[1;00m | |
31 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
32 | +[1;31m[ALLOC] Allocated 127 bytes to 2000FFA0[1;00m | |
33 | +[1;32m[FREE] Freed bytes from 2000FF28[1;00m | |
34 | +[1;31m[ALLOC] Allocated 147 bytes to 2000FEC0[1;00m | |
35 | +[1;32m[FREE] Freed bytes from 2000FFA0[1;00m | |
36 | +[1;31m[ALLOC] Allocated 206 bytes to 2000FF60[1;00m | |
37 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
38 | +[1;31m[ALLOC] Allocated 211 bytes to 20010038[1;00m | |
39 | +[1;32m[FREE] Freed bytes from 2000FF60[1;00m | |
40 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
41 | +[1;31m[ALLOC] Allocated 14 bytes to 2000FC20[1;00m | |
42 | +[1;31m[ALLOC] Allocated 50 bytes to 2000FC38[1;00m | |
43 | +[1;31m[ALLOC] Allocated 368 bytes to 2000FEC0[1;00m | |
44 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC78[1;00m | |
45 | +[1;32m[FREE] Freed bytes from 2000FC78[1;00m | |
46 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
47 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F328[1;00m | |
48 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
49 | +[1;32m[FREE] Freed bytes from 2000FC38[1;00m | |
50 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
51 | +[1;32m[FREE] Freed bytes from 20010038[1;00m | |
52 | +[1;31m[ALLOC] Allocated 32 bytes to 2000FC20[1;00m | |
53 | +[1;31m[ALLOC] Allocated 49 bytes to 2000FC48[1;00m | |
54 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
55 | +[1;31m[ALLOC] Allocated 80 bytes to 2000FCA8[1;00m | |
56 | +[1;32m[FREE] Freed bytes from 2000FC48[1;00m | |
57 | +[1;31m[ALLOC] Allocated 90 bytes to 2000FC20[1;00m | |
58 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
59 | +[1;31m[ALLOC] Allocated 110 bytes to 2000FCA8[1;00m | |
60 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
61 | +[1;31m[ALLOC] Allocated 120 bytes to 2000FEC0[1;00m | |
62 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
63 | +[1;31m[ALLOC] Allocated 126 bytes to 2000FCA8[1;00m | |
64 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
65 | +[1;31m[ALLOC] Allocated 140 bytes to 2000FEC0[1;00m | |
66 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
67 | +[1;31m[ALLOC] Allocated 158 bytes to 2000FF58[1;00m | |
68 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
69 | +[1;31m[ALLOC] Allocated 163 bytes to 20010000[1;00m | |
70 | +[1;32m[FREE] Freed bytes from 2000FF58[1;00m | |
71 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F328[1;00m | |
72 | +[1;31m[ALLOC] Allocated 50 bytes to 2000FC20[1;00m | |
73 | +[1;31m[ALLOC] Allocated 320 bytes to 20010208[1;00m | |
74 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC60[1;00m | |
75 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
76 | +[1;32m[FREE] Freed bytes from 20010208[1;00m | |
77 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC78[1;00m | |
78 | +[1;32m[FREE] Freed bytes from 2000FC78[1;00m | |
79 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
80 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
81 | +[1;32m[FREE] Freed bytes from 20010000[1;00m | |
82 | +[1;31m[ALLOC] Allocated 32 bytes to 2000FC20[1;00m | |
83 | +[1;31m[ALLOC] Allocated 49 bytes to 2000FC48[1;00m | |
84 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
85 | +[1;31m[ALLOC] Allocated 62 bytes to 2000FCA8[1;00m | |
86 | +[1;32m[FREE] Freed bytes from 2000FC48[1;00m | |
87 | +[1;31m[ALLOC] Allocated 72 bytes to 2000FC20[1;00m | |
88 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
89 | +[1;31m[ALLOC] Allocated 77 bytes to 2000FCA8[1;00m | |
90 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
91 | +[1;31m[ALLOC] Allocated 87 bytes to 2000FC20[1;00m | |
92 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
93 | +[1;31m[ALLOC] Allocated 89 bytes to 2000FCA8[1;00m | |
94 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
95 | +[1;31m[ALLOC] Allocated 103 bytes to 2000FEC0[1;00m | |
96 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
97 | +[1;31m[ALLOC] Allocated 121 bytes to 2000FCA8[1;00m | |
98 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
99 | +[1;31m[ALLOC] Allocated 126 bytes to 2000FEC0[1;00m | |
100 | +[1;32m[FREE] Freed bytes from 2000FCA8[1;00m | |
101 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F328[1;00m | |
102 | +[1;31m[ALLOC] Allocated 50 bytes to 2000FC20[1;00m | |
103 | +[1;31m[ALLOC] Allocated 283 bytes to 2000FF48[1;00m | |
104 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC60[1;00m | |
105 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
106 | +[1;32m[FREE] Freed bytes from 2000FF48[1;00m | |
107 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC78[1;00m | |
108 | +[1;32m[FREE] Freed bytes from 2000FC78[1;00m | |
109 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
110 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
111 | +[1;32m[FREE] Freed bytes from 2000FEC0[1;00m | |
112 | +[1;35mmain.c:[1;00m 2 sensor detected... | |
113 | +[1;35mmain.c:[1;00m Requesting new NTP time... | |
114 | +[1;35mmain.c:[1;00m Updating new time to 3611097704 | |
115 | +[1;35mmain.c:[1;00m Time updated | |
116 | +[1;35mmain.c:[1;00m Disconnecting wifi... | |
117 | +[1;35mmain.c:[1;00m Disconnecting Successful: WIFI_DISCONNECT_SUCCESS | |
118 | +[1;31mFailed[1;00m | |
119 | +[1;35mmain.c:[1;00m Time (absolute): 3611097720 | |
120 | +Time LONG_PERIOD: 0 | |
121 | +Time SHORT_PERIOD: 0 | |
122 | +[1;31m[ALLOC] Allocated 12 bytes to 2000EFC8[1;00m | |
123 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F400[1;00m | |
124 | +[1;35mmain.c:[1;00m Time (absolute): 3611097720 | |
125 | +Time LONG_PERIOD: 0 | |
126 | +Time SHORT_PERIOD: 0 | |
127 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611097720 | |
128 | +Timestamp LONG_PERIOD: 0 | |
129 | +Timestamp SHORT_PERIOD: 0 | |
130 | +[1;35mmain.c:[1;00m Timestamping data... | |
131 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F418[1;00m | |
132 | +[1;31m[ALLOC] Allocated 32 bytes to 2000F428[1;00m | |
133 | +[1;35mmain.c:[1;00m Data is: 39172,29020,7/6/2014T4:42:0 | |
134 | +[1;32m[FREE] Freed bytes from 2000EFC8[1;00m | |
135 | +[1;31m[ALLOC] Allocated 31 bytes to 2000F450[1;00m | |
136 | +[1;35mmain.c:[1;00m Data is: 6507,10252,7/6/2014T4:42:0 | |
137 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
138 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
139 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
140 | +[1;35mmain.c:[1;00m Putting data: 39172,29020,7/6/2014T4:42:0 | |
141 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
142 | +[1;31m[ALLOC] Allocated 4 bytes to 2000EFC8[1;00m | |
143 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F478[1;00m | |
144 | +[1;35mbuffer.c:[1;00m Data copied | |
145 | +[1;35mmain.c:[1;00m Message put: 39172,29020,7/6/2014T4:42:0 | |
146 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
147 | +[1;35mmain.c:[1;00m Memory freed | |
148 | + [1;35mmain.c:[1;00m Putting data: 6507,10252,7/6/2014T4:42:0 | |
149 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
150 | +[1;31m[ALLOC] Allocated 4 bytes to 2000EFD8[1;00m | |
151 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
152 | +[1;35mbuffer.c:[1;00m Data copied | |
153 | +[1;35mmain.c:[1;00m Message put: 6507,10252,7/6/2014T4:42:0 | |
154 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
155 | +[1;35mmain.c:[1;00m Memory freed | |
156 | + [1;35mmain.c:[1;00m Data is now in buffer | |
157 | + [1;35mbuffer.c:[1;00m Checking available memory... | |
158 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33600 B[1;00m | |
159 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1104 B[1;00m | |
160 | +[1;35mmain.c:[1;00m Time (absolute): 3611097720 | |
161 | +Time LONG_PERIOD: 0 | |
162 | +Time SHORT_PERIOD: 0 | |
163 | +[1;35mmain.c:[1;00m Time (absolute): 3611097780 | |
164 | +Time LONG_PERIOD: 0 | |
165 | +Time SHORT_PERIOD: 0 | |
166 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F400[1;00m | |
167 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F450[1;00m | |
168 | +[1;35mmain.c:[1;00m Time (absolute): 3611097780 | |
169 | +Time LONG_PERIOD: 0 | |
170 | +Time SHORT_PERIOD: 0 | |
171 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611097780 | |
172 | +Timestamp LONG_PERIOD: 0 | |
173 | +Timestamp SHORT_PERIOD: 0 | |
174 | +[1;35mmain.c:[1;00m Timestamping data... | |
175 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F468[1;00m | |
176 | +[1;31m[ALLOC] Allocated 32 bytes to 2000F4A0[1;00m | |
177 | +[1;35mmain.c:[1;00m Data is: 39176,29013,7/6/2014T4:43:0 | |
178 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
179 | +[1;31m[ALLOC] Allocated 31 bytes to 2000F4C8[1;00m | |
180 | +[1;35mmain.c:[1;00m Data is: 6506,10268,7/6/2014T4:43:0 | |
181 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
182 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
183 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
184 | +[1;35mmain.c:[1;00m Putting data: 39176,29013,7/6/2014T4:43:0 | |
185 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
186 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F400[1;00m | |
187 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4F0[1;00m | |
188 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
189 | +[1;32m[FREE] Freed bytes from 2000EFC8[1;00m | |
190 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F478[1;00m | |
191 | +[1;35mbuffer.c:[1;00m Data copied | |
192 | +[1;35mmain.c:[1;00m Message put: 39176,29013,7/6/2014T4:43:0 | |
193 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
194 | +[1;35mmain.c:[1;00m Memory freed | |
195 | + [1;35mmain.c:[1;00m Putting data: 6506,10268,7/6/2014T4:43:0 | |
196 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
197 | +[1;31m[ALLOC] Allocated 8 bytes to 2000EFC8[1;00m | |
198 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F4A0[1;00m | |
199 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
200 | +[1;32m[FREE] Freed bytes from 2000EFD8[1;00m | |
201 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
202 | +[1;35mbuffer.c:[1;00m Data copied | |
203 | +[1;35mmain.c:[1;00m Message put: 6506,10268,7/6/2014T4:43:0 | |
204 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
205 | +[1;35mmain.c:[1;00m Memory freed | |
206 | + [1;35mmain.c:[1;00m Data is now in buffer | |
207 | + [1;35mbuffer.c:[1;00m Checking available memory... | |
208 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33488 B[1;00m | |
209 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1216 B[1;00m | |
210 | +[1;35mmain.c:[1;00m Time (absolute): 3611097780 | |
211 | +Time LONG_PERIOD: 0 | |
212 | +Time SHORT_PERIOD: 0 | |
213 | +[1;35mmain.c:[1;00m Time (absolute): 3611097840 | |
214 | +Time LONG_PERIOD: 0 | |
215 | +Time SHORT_PERIOD: 0 | |
216 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F450[1;00m | |
217 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F4C8[1;00m | |
218 | +[1;35mmain.c:[1;00m Time (absolute): 3611097840 | |
219 | +Time LONG_PERIOD: 0 | |
220 | +Time SHORT_PERIOD: 0 | |
221 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611097840 | |
222 | +Timestamp LONG_PERIOD: 0 | |
223 | +Timestamp SHORT_PERIOD: 0 | |
224 | +[1;35mmain.c:[1;00m Timestamping data... | |
225 | +[1;31m[ALLOC] Allocated 8 bytes to 2000EFD8[1;00m | |
226 | +[1;31m[ALLOC] Allocated 32 bytes to 2000F518[1;00m | |
227 | +[1;35mmain.c:[1;00m Data is: 39184,29009,7/6/2014T4:44:0 | |
228 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
229 | +[1;31m[ALLOC] Allocated 31 bytes to 2000F540[1;00m | |
230 | +[1;35mmain.c:[1;00m Data is: 6499,10193,7/6/2014T4:44:0 | |
231 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
232 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
233 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
234 | +[1;35mmain.c:[1;00m Putting data: 39184,29009,7/6/2014T4:44:0 | |
235 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
236 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F450[1;00m | |
237 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4C8[1;00m | |
238 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
239 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4F0[1;00m | |
240 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
241 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
242 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F478[1;00m | |
243 | +[1;35mbuffer.c:[1;00m Data copied | |
244 | +[1;35mmain.c:[1;00m Message put: 39184,29009,7/6/2014T4:44:0 | |
245 | +[1;32m[FREE] Freed bytes from 2000F518[1;00m | |
246 | +[1;35mmain.c:[1;00m Memory freed | |
247 | + [1;35mmain.c:[1;00m Putting data: 6499,10193,7/6/2014T4:44:0 | |
248 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
249 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F400[1;00m | |
250 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F518[1;00m | |
251 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
252 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F4A0[1;00m | |
253 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
254 | +[1;32m[FREE] Freed bytes from 2000EFC8[1;00m | |
255 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
256 | +[1;35mbuffer.c:[1;00m Data copied | |
257 | +[1;35mmain.c:[1;00m Message put: 6499,10193,7/6/2014T4:44:0 | |
258 | +[1;32m[FREE] Freed bytes from 2000F540[1;00m | |
259 | +[1;35mmain.c:[1;00m Memory freed | |
260 | + [1;35mmain.c:[1;00m Data is now in buffer | |
261 | + [1;35mmain.c:[1;00m Programmed send cycle... | |
262 | +[1;35mmain.c:[1;00m Connecting wifi... | |
263 | +[1;35mmain.c:[1;00m SSID = SERVER_WLAN | |
264 | +[1;35mmain.c:[1;00m Wep key = TGW2YHNKT9TW | |
265 | +[1;35mmain.c:[1;00m Passphrase = TGW2YHNKT9TW | |
266 | +[1;35mmain.c:[1;00m User = | |
267 | +[1;35mmain.c:[1;00m Password = | |
268 | +[1;35mmain.c:[1;00m Encryption type = 4 | |
269 | +[1;35mmain.c:[1;00m Geo Localization = 41.557255 2.096183 | |
270 | +[1;35mmain.c:[1;00m WPA network detected | |
271 | +[1;32mConnected[1;00m | |
272 | +Connected to: 00:26:5B:D9:0D:18 | |
273 | +[1;35mmain.c:[1;00m Sending buffer 0 | |
274 | +[1;35mbuffer.c:[1;00m Preparing JSON statement... | |
275 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F328[1;00m | |
276 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F570[1;00m | |
277 | +[1;31m[ALLOC] Allocated 16 bytes to 2000FC60[1;00m | |
278 | +[1;31m[ALLOC] Allocated 22 bytes to 2000FC78[1;00m | |
279 | +[1;31m[ALLOC] Allocated 37 bytes to 2000FC98[1;00m | |
280 | +[1;31m[ALLOC] Allocated 52 bytes to 2000FCC8[1;00m | |
281 | +[1;32m[FREE] Freed bytes from 2000FC98[1;00m | |
282 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
283 | +[1;31m[ALLOC] Allocated 55 bytes to 20010040[1;00m | |
284 | +[1;32m[FREE] Freed bytes from 2000FC78[1;00m | |
285 | +[1;32m[FREE] Freed bytes from 2000FCC8[1;00m | |
286 | +[1;32m[FREE] Freed bytes from 2000F570[1;00m | |
287 | +[1;31m[ALLOC] Allocated 72 bytes to 2000FC60[1;00m | |
288 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
289 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
290 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F328[1;00m | |
291 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F570[1;00m | |
292 | +[1;31m[ALLOC] Allocated 22 bytes to 2000FCB0[1;00m | |
293 | +[1;31m[ALLOC] Allocated 37 bytes to 2000FCD0[1;00m | |
294 | +[1;31m[ALLOC] Allocated 52 bytes to 20010040[1;00m | |
295 | +[1;32m[FREE] Freed bytes from 2000FCD0[1;00m | |
296 | +[1;32m[FREE] Freed bytes from 2000F570[1;00m | |
297 | +[1;31m[ALLOC] Allocated 55 bytes to 2000FCD0[1;00m | |
298 | +[1;32m[FREE] Freed bytes from 2000FCB0[1;00m | |
299 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
300 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
301 | +[1;31m[ALLOC] Allocated 126 bytes to 20010040[1;00m | |
302 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
303 | +[1;32m[FREE] Freed bytes from 2000FCD0[1;00m | |
304 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F328[1;00m | |
305 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F570[1;00m | |
306 | +[1;31m[ALLOC] Allocated 22 bytes to 2000FC60[1;00m | |
307 | +[1;31m[ALLOC] Allocated 37 bytes to 2000FC80[1;00m | |
308 | +[1;31m[ALLOC] Allocated 52 bytes to 2000FCB0[1;00m | |
309 | +[1;32m[FREE] Freed bytes from 2000FC80[1;00m | |
310 | +[1;32m[FREE] Freed bytes from 2000F570[1;00m | |
311 | +[1;31m[ALLOC] Allocated 55 bytes to 200100C8[1;00m | |
312 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
313 | +[1;32m[FREE] Freed bytes from 2000FCB0[1;00m | |
314 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
315 | +[1;31m[ALLOC] Allocated 180 bytes to 20010108[1;00m | |
316 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
317 | +[1;32m[FREE] Freed bytes from 200100C8[1;00m | |
318 | +[1;31m[ALLOC] Allocated 182 bytes to 20010040[1;00m | |
319 | +[1;32m[FREE] Freed bytes from 20010108[1;00m | |
320 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F328[1;00m | |
321 | +[1;31m[ALLOC] Allocated 62 bytes to 2000FC60[1;00m | |
322 | +[1;31m[ALLOC] Allocated 350 bytes to 20010100[1;00m | |
323 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F570[1;00m | |
324 | +[1;32m[FREE] Freed bytes from 2000F570[1;00m | |
325 | +[1;32m[FREE] Freed bytes from 20010100[1;00m | |
326 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC20[1;00m | |
327 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
328 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
329 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
330 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
331 | +[1;35mbuffer.c:[1;00m Data sent successfully | |
332 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
333 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
334 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
335 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
336 | +[1;35mmain.c:[1;00m Sending buffer 1 | |
337 | +[1;35mbuffer.c:[1;00m Preparing JSON statement... | |
338 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F328[1;00m | |
339 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F450[1;00m | |
340 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F478[1;00m | |
341 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F4C8[1;00m | |
342 | +[1;31m[ALLOC] Allocated 36 bytes to 2000F4E8[1;00m | |
343 | +[1;31m[ALLOC] Allocated 51 bytes to 2000FC60[1;00m | |
344 | +[1;32m[FREE] Freed bytes from 2000F4E8[1;00m | |
345 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
346 | +[1;31m[ALLOC] Allocated 54 bytes to 20010040[1;00m | |
347 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
348 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
349 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
350 | +[1;31m[ALLOC] Allocated 71 bytes to 2000F4C8[1;00m | |
351 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
352 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
353 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F328[1;00m | |
354 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F450[1;00m | |
355 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F478[1;00m | |
356 | +[1;31m[ALLOC] Allocated 36 bytes to 2000FC60[1;00m | |
357 | +[1;31m[ALLOC] Allocated 51 bytes to 2000FC90[1;00m | |
358 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
359 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
360 | +[1;31m[ALLOC] Allocated 54 bytes to 2000FCD0[1;00m | |
361 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
362 | +[1;32m[FREE] Freed bytes from 2000FC90[1;00m | |
363 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
364 | +[1;31m[ALLOC] Allocated 124 bytes to 20010040[1;00m | |
365 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
366 | +[1;32m[FREE] Freed bytes from 2000FCD0[1;00m | |
367 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F328[1;00m | |
368 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F450[1;00m | |
369 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F478[1;00m | |
370 | +[1;31m[ALLOC] Allocated 36 bytes to 2000F4C8[1;00m | |
371 | +[1;31m[ALLOC] Allocated 51 bytes to 2000FC60[1;00m | |
372 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
373 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
374 | +[1;31m[ALLOC] Allocated 54 bytes to 2000F4C8[1;00m | |
375 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
376 | +[1;32m[FREE] Freed bytes from 2000FC60[1;00m | |
377 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
378 | +[1;31m[ALLOC] Allocated 177 bytes to 200100C8[1;00m | |
379 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
380 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
381 | +[1;31m[ALLOC] Allocated 179 bytes to 20010188[1;00m | |
382 | +[1;32m[FREE] Freed bytes from 200100C8[1;00m | |
383 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F328[1;00m | |
384 | +[1;31m[ALLOC] Allocated 62 bytes to 2000F4C8[1;00m | |
385 | +[1;31m[ALLOC] Allocated 347 bytes to 20010248[1;00m | |
386 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F450[1;00m | |
387 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
388 | +[1;32m[FREE] Freed bytes from 20010248[1;00m | |
389 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F478[1;00m | |
390 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
391 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
392 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
393 | +[1;32m[FREE] Freed bytes from 20010188[1;00m | |
394 | +[1;35mbuffer.c:[1;00m Data sent successfully | |
395 | +[1;32m[FREE] Freed bytes from 2000F518[1;00m | |
396 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
397 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
398 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
399 | +[1;35mmain.c:[1;00m Polling battery level... | |
400 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F328[1;00m | |
401 | +[1;31m[ALLOC] Allocated 25 bytes to 2000F428[1;00m | |
402 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
403 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F328[1;00m | |
404 | +[1;31m[ALLOC] Allocated 5 bytes to 2000F400[1;00m | |
405 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F450[1;00m | |
406 | +[1;31m[ALLOC] Allocated 15 bytes to 2000F478[1;00m | |
407 | +[1;31m[ALLOC] Allocated 30 bytes to 2000F490[1;00m | |
408 | +[1;31m[ALLOC] Allocated 45 bytes to 2000F4B8[1;00m | |
409 | +[1;32m[FREE] Freed bytes from 2000F490[1;00m | |
410 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
411 | +[1;31m[ALLOC] Allocated 48 bytes to 2000F4F0[1;00m | |
412 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
413 | +[1;32m[FREE] Freed bytes from 2000F4B8[1;00m | |
414 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
415 | +[1;31m[ALLOC] Allocated 65 bytes to 2000F478[1;00m | |
416 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
417 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
418 | +[1;31m[ALLOC] Allocated 67 bytes to 2000F4C8[1;00m | |
419 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
420 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
421 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F328[1;00m | |
422 | +[1;31m[ALLOC] Allocated 62 bytes to 2000F478[1;00m | |
423 | +[1;31m[ALLOC] Allocated 234 bytes to 20010040[1;00m | |
424 | +[1;31m[ALLOC] Allocated 3 bytes to 2000F400[1;00m | |
425 | +[1;32m[FREE] Freed bytes from 2000F400[1;00m | |
426 | +[1;32m[FREE] Freed bytes from 20010040[1;00m | |
427 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F428[1;00m | |
428 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
429 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
430 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
431 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
432 | +[1;35mmain.c:[1;00m Requesting new NTP time... | |
433 | +[1;35mmain.c:[1;00m Updating new time to 3611097855 | |
434 | +[1;35mmain.c:[1;00m Time updated | |
435 | +[1;35mmain.c:[1;00m Disconnecting wifi... | |
436 | +[1;35mmain.c:[1;00m Disconnecting Successful: WIFI_DISCONNECT_SUCCESS | |
437 | +[1;35mmain.c:[1;00m New NTP time (absolute): 3611097855 | |
438 | +Time LONG_PERIOD: 45 | |
439 | +Time SHORT_PERIOD: 15 | |
440 | +[1;35mbuffer.c:[1;00m Checking available memory... | |
441 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33576 B[1;00m | |
442 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1128 B[1;00m | |
443 | +[1;35mmain.c:[1;00m Time (absolute): 3611097856 | |
444 | +Time LONG_PERIOD: 48 | |
445 | +Time SHORT_PERIOD: 16 | |
446 | +[1;31mFailed[1;00m | |
447 | +[1;35mmain.c:[1;00m Time (absolute): 3611097900 | |
448 | +Time LONG_PERIOD: 0 | |
449 | +Time SHORT_PERIOD: 0 | |
450 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F328[1;00m | |
451 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F428[1;00m | |
452 | +[1;35mmain.c:[1;00m Time (absolute): 3611097900 | |
453 | +Time LONG_PERIOD: 0 | |
454 | +Time SHORT_PERIOD: 0 | |
455 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611097900 | |
456 | +Timestamp LONG_PERIOD: 0 | |
457 | +Timestamp SHORT_PERIOD: 0 | |
458 | +[1;35mmain.c:[1;00m Timestamping data... | |
459 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F408[1;00m | |
460 | +[1;31m[ALLOC] Allocated 32 bytes to 2000F440[1;00m | |
461 | +[1;35mmain.c:[1;00m Data is: 39186,29010,7/6/2014T4:45:0 | |
462 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
463 | +[1;31m[ALLOC] Allocated 31 bytes to 2000F478[1;00m | |
464 | +[1;35mmain.c:[1;00m Data is: 6498,10182,7/6/2014T4:45:0 | |
465 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
466 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
467 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
468 | +[1;35mmain.c:[1;00m Putting data: 39186,29010,7/6/2014T4:45:0 | |
469 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
470 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F328[1;00m | |
471 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4A0[1;00m | |
472 | +[1;35mbuffer.c:[1;00m Data copied | |
473 | +[1;35mmain.c:[1;00m Message put: 39186,29010,7/6/2014T4:45:0 | |
474 | +[1;32m[FREE] Freed bytes from 2000F440[1;00m | |
475 | +[1;35mmain.c:[1;00m Memory freed | |
476 | + [1;35mmain.c:[1;00m Putting data: 6498,10182,7/6/2014T4:45:0 | |
477 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
478 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F338[1;00m | |
479 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
480 | +[1;35mbuffer.c:[1;00m Data copied | |
481 | +[1;35mmain.c:[1;00m Message put: 6498,10182,7/6/2014T4:45:0 | |
482 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
483 | +[1;35mmain.c:[1;00m Memory freed | |
484 | + [1;35mmain.c:[1;00m Data is now in buffer | |
485 | + [1;35mbuffer.c:[1;00m Checking available memory... | |
486 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33456 B[1;00m | |
487 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1248 B[1;00m | |
488 | +[1;35mmain.c:[1;00m Time (absolute): 3611097900 | |
489 | +Time LONG_PERIOD: 0 | |
490 | +Time SHORT_PERIOD: 0 | |
491 | +[1;35mmain.c:[1;00m Time (absolute): 3611097960 | |
492 | +Time LONG_PERIOD: 0 | |
493 | +Time SHORT_PERIOD: 0 | |
494 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F450[1;00m | |
495 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F478[1;00m | |
496 | +[1;35mmain.c:[1;00m Time (absolute): 3611097960 | |
497 | +Time LONG_PERIOD: 0 | |
498 | +Time SHORT_PERIOD: 0 | |
499 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611097960 | |
500 | +Timestamp LONG_PERIOD: 0 | |
501 | +Timestamp SHORT_PERIOD: 0 | |
502 | +[1;35mmain.c:[1;00m Timestamping data... | |
503 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F490[1;00m | |
504 | +[1;31m[ALLOC] Allocated 32 bytes to 2000F4C8[1;00m | |
505 | +[1;35mmain.c:[1;00m Data is: 39180,29010,7/6/2014T4:46:0 | |
506 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
507 | +[1;31m[ALLOC] Allocated 31 bytes to 2000F4F0[1;00m | |
508 | +[1;35mmain.c:[1;00m Data is: 6496,10162,7/6/2014T4:46:0 | |
509 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
510 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
511 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
512 | +[1;35mmain.c:[1;00m Putting data: 39180,29010,7/6/2014T4:46:0 | |
513 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
514 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F450[1;00m | |
515 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F518[1;00m | |
516 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
517 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
518 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4A0[1;00m | |
519 | +[1;35mbuffer.c:[1;00m Data copied | |
520 | +[1;35mmain.c:[1;00m Message put: 39180,29010,7/6/2014T4:46:0 | |
521 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
522 | +[1;35mmain.c:[1;00m Memory freed | |
523 | + [1;35mmain.c:[1;00m Putting data: 6496,10162,7/6/2014T4:46:0 | |
524 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
525 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F328[1;00m | |
526 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F4C8[1;00m | |
527 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
528 | +[1;32m[FREE] Freed bytes from 2000F338[1;00m | |
529 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
530 | +[1;35mbuffer.c:[1;00m Data copied | |
531 | +[1;35mmain.c:[1;00m Message put: 6496,10162,7/6/2014T4:46:0 | |
532 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
533 | +[1;35mmain.c:[1;00m Memory freed | |
534 | + [1;35mmain.c:[1;00m Data is now in buffer | |
535 | + [1;35mbuffer.c:[1;00m Checking available memory... | |
536 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33344 B[1;00m | |
537 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1360 B[1;00m | |
538 | +[1;35mmain.c:[1;00m Time (absolute): 3611097960 | |
539 | +Time LONG_PERIOD: 0 | |
540 | +Time SHORT_PERIOD: 0 | |
541 | +[1;35mmain.c:[1;00m Time (absolute): 3611098020 | |
542 | +Time LONG_PERIOD: 0 | |
543 | +Time SHORT_PERIOD: 0 | |
544 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F478[1;00m | |
545 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F4F0[1;00m | |
546 | +[1;35mmain.c:[1;00m Time (absolute): 3611098020 | |
547 | +Time LONG_PERIOD: 0 | |
548 | +Time SHORT_PERIOD: 0 | |
549 | +[1;35mmain.c:[1;00m Timestamp (absolute): 3611098020 | |
550 | +Timestamp LONG_PERIOD: 0 | |
551 | +Timestamp SHORT_PERIOD: 0 | |
552 | +[1;35mmain.c:[1;00m Timestamping data... | |
553 | +[1;31m[ALLOC] Allocated 8 bytes to 2000F338[1;00m | |
554 | +[1;31m[ALLOC] Allocated 32 bytes to 2000FC20[1;00m | |
555 | +[1;35mmain.c:[1;00m Data is: 39184,29008,7/6/2014T4:47:0 | |
556 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
557 | +[1;31m[ALLOC] Allocated 31 bytes to 2000FCC0[1;00m | |
558 | +[1;35mmain.c:[1;00m Data is: 6500,10233,7/6/2014T4:47:0 | |
559 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
560 | +[1;35mmain.c:[1;00m Returning timestamped data... | |
561 | +[1;35mmain.c:[1;00m Putting data in buffers... | |
562 | +[1;35mmain.c:[1;00m Putting data: 39184,29008,7/6/2014T4:47:0 | |
563 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
564 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F478[1;00m | |
565 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4F0[1;00m | |
566 | +[1;32m[FREE] Freed bytes from 2000F518[1;00m | |
567 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F518[1;00m | |
568 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
569 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
570 | +[1;31m[ALLOC] Allocated 28 bytes to 2000F4A0[1;00m | |
571 | +[1;35mbuffer.c:[1;00m Data copied | |
572 | +[1;35mmain.c:[1;00m Message put: 39184,29008,7/6/2014T4:47:0 | |
573 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
574 | +[1;35mmain.c:[1;00m Memory freed | |
575 | + [1;35mmain.c:[1;00m Putting data: 6500,10233,7/6/2014T4:47:0 | |
576 | + [1;35mbuffer.c:[1;00m Joining buffer... | |
577 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F450[1;00m | |
578 | +[1;31m[ALLOC] Allocated 27 bytes to 2000FC20[1;00m | |
579 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
580 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F4C8[1;00m | |
581 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
582 | +[1;32m[FREE] Freed bytes from 2000F328[1;00m | |
583 | +[1;31m[ALLOC] Allocated 27 bytes to 2000F428[1;00m | |
584 | +[1;35mbuffer.c:[1;00m Data copied | |
585 | +[1;35mmain.c:[1;00m Message put: 6500,10233,7/6/2014T4:47:0 | |
586 | +[1;32m[FREE] Freed bytes from 2000FCC0[1;00m | |
587 | +[1;35mmain.c:[1;00m Memory freed | |
588 | + [1;35mmain.c:[1;00m Data is now in buffer | |
589 | + [1;35mmain.c:[1;00m Programmed send cycle... | |
590 | +[1;35mmain.c:[1;00m Connecting wifi... | |
591 | +[1;35mmain.c:[1;00m SSID = SERVER_WLAN | |
592 | +[1;35mmain.c:[1;00m Wep key = TGW2YHNKT9TW | |
593 | +[1;35mmain.c:[1;00m Passphrase = TGW2YHNKT9TW | |
594 | +[1;35mmain.c:[1;00m User = | |
595 | +[1;35mmain.c:[1;00m Password = | |
596 | +[1;35mmain.c:[1;00m Encryption type = 4 | |
597 | +[1;35mmain.c:[1;00m Geo Localization = 41.557255 2.096183 | |
598 | +[1;35mmain.c:[1;00m WPA network detected | |
599 | +[1;32mConnected[1;00m | |
600 | +Connected to: 00:26:5B:D9:0D:18 | |
601 | +[1;35mmain.c:[1;00m Sending buffer 0 | |
602 | +[1;35mbuffer.c:[1;00m Preparing JSON statement... | |
603 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F540[1;00m | |
604 | +[1;31m[ALLOC] Allocated 12 bytes to 2000FC48[1;00m | |
605 | +[1;31m[ALLOC] Allocated 16 bytes to 20010018[1;00m | |
606 | +[1;31m[ALLOC] Allocated 22 bytes to 20010030[1;00m | |
607 | +[1;31m[ALLOC] Allocated 37 bytes to 20010050[1;00m | |
608 | +[1;31m[ALLOC] Allocated 52 bytes to 20010080[1;00m | |
609 | +[1;32m[FREE] Freed bytes from 20010050[1;00m | |
610 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
611 | +[1;31m[ALLOC] Allocated 55 bytes to 200100C0[1;00m | |
612 | +[1;32m[FREE] Freed bytes from 20010030[1;00m | |
613 | +[1;32m[FREE] Freed bytes from 20010080[1;00m | |
614 | +[1;32m[FREE] Freed bytes from 2000FC48[1;00m | |
615 | +[1;31m[ALLOC] Allocated 72 bytes to 20010018[1;00m | |
616 | +[1;32m[FREE] Freed bytes from 2000F540[1;00m | |
617 | +[1;32m[FREE] Freed bytes from 200100C0[1;00m | |
618 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F540[1;00m | |
619 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F558[1;00m | |
620 | +[1;31m[ALLOC] Allocated 22 bytes to 20010068[1;00m | |
621 | +[1;31m[ALLOC] Allocated 37 bytes to 20010088[1;00m | |
622 | +[1;31m[ALLOC] Allocated 52 bytes to 200100B8[1;00m | |
623 | +[1;32m[FREE] Freed bytes from 20010088[1;00m | |
624 | +[1;32m[FREE] Freed bytes from 2000F558[1;00m | |
625 | +[1;31m[ALLOC] Allocated 55 bytes to 200100F8[1;00m | |
626 | +[1;32m[FREE] Freed bytes from 20010068[1;00m | |
627 | +[1;32m[FREE] Freed bytes from 200100B8[1;00m | |
628 | +[1;32m[FREE] Freed bytes from 2000F540[1;00m | |
629 | +[1;31m[ALLOC] Allocated 126 bytes to 20010068[1;00m | |
630 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
631 | +[1;32m[FREE] Freed bytes from 200100F8[1;00m | |
632 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F540[1;00m | |
633 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F558[1;00m | |
634 | +[1;31m[ALLOC] Allocated 22 bytes to 20010018[1;00m | |
635 | +[1;31m[ALLOC] Allocated 37 bytes to 20010038[1;00m | |
636 | +[1;31m[ALLOC] Allocated 52 bytes to 200100F0[1;00m | |
637 | +[1;32m[FREE] Freed bytes from 20010038[1;00m | |
638 | +[1;32m[FREE] Freed bytes from 2000F558[1;00m | |
639 | +[1;31m[ALLOC] Allocated 55 bytes to 20010130[1;00m | |
640 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
641 | +[1;32m[FREE] Freed bytes from 200100F0[1;00m | |
642 | +[1;32m[FREE] Freed bytes from 2000F540[1;00m | |
643 | +[1;31m[ALLOC] Allocated 180 bytes to 20010170[1;00m | |
644 | +[1;32m[FREE] Freed bytes from 20010068[1;00m | |
645 | +[1;32m[FREE] Freed bytes from 20010130[1;00m | |
646 | +[1;31m[ALLOC] Allocated 182 bytes to 20010018[1;00m | |
647 | +[1;32m[FREE] Freed bytes from 20010170[1;00m | |
648 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F540[1;00m | |
649 | +[1;31m[ALLOC] Allocated 62 bytes to 200100D8[1;00m | |
650 | +[1;31m[ALLOC] Allocated 350 bytes to 20010120[1;00m | |
651 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F558[1;00m | |
652 | +[1;32m[FREE] Freed bytes from 2000F558[1;00m | |
653 | +[1;32m[FREE] Freed bytes from 20010120[1;00m | |
654 | +[1;31m[ALLOC] Allocated 4 bytes to 2000FC48[1;00m | |
655 | +[1;32m[FREE] Freed bytes from 2000FC48[1;00m | |
656 | +[1;32m[FREE] Freed bytes from 200100D8[1;00m | |
657 | +[1;32m[FREE] Freed bytes from 2000F540[1;00m | |
658 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
659 | +[1;35mbuffer.c:[1;00m Data sent successfully | |
660 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
661 | +[1;32m[FREE] Freed bytes from 2000F518[1;00m | |
662 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
663 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
664 | +[1;35mmain.c:[1;00m Sending buffer 1 | |
665 | +[1;35mbuffer.c:[1;00m Preparing JSON statement... | |
666 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F4A0[1;00m | |
667 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F478[1;00m | |
668 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F4F0[1;00m | |
669 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F508[1;00m | |
670 | +[1;31m[ALLOC] Allocated 36 bytes to 2000F528[1;00m | |
671 | +[1;31m[ALLOC] Allocated 51 bytes to 20010018[1;00m | |
672 | +[1;32m[FREE] Freed bytes from 2000F528[1;00m | |
673 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
674 | +[1;31m[ALLOC] Allocated 54 bytes to 2000F528[1;00m | |
675 | +[1;32m[FREE] Freed bytes from 2000F508[1;00m | |
676 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
677 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
678 | +[1;31m[ALLOC] Allocated 71 bytes to 20010018[1;00m | |
679 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
680 | +[1;32m[FREE] Freed bytes from 2000F528[1;00m | |
681 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F478[1;00m | |
682 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F4A0[1;00m | |
683 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F4F0[1;00m | |
684 | +[1;31m[ALLOC] Allocated 36 bytes to 2000F510[1;00m | |
685 | +[1;31m[ALLOC] Allocated 51 bytes to 20010068[1;00m | |
686 | +[1;32m[FREE] Freed bytes from 2000F510[1;00m | |
687 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
688 | +[1;31m[ALLOC] Allocated 54 bytes to 2000F510[1;00m | |
689 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
690 | +[1;32m[FREE] Freed bytes from 20010068[1;00m | |
691 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
692 | +[1;31m[ALLOC] Allocated 124 bytes to 20010068[1;00m | |
693 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
694 | +[1;32m[FREE] Freed bytes from 2000F510[1;00m | |
695 | +[1;31m[ALLOC] Allocated 11 bytes to 2000F478[1;00m | |
696 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F4A0[1;00m | |
697 | +[1;31m[ALLOC] Allocated 21 bytes to 2000F4F0[1;00m | |
698 | +[1;31m[ALLOC] Allocated 36 bytes to 2000F510[1;00m | |
699 | +[1;31m[ALLOC] Allocated 51 bytes to 20010018[1;00m | |
700 | +[1;32m[FREE] Freed bytes from 2000F510[1;00m | |
701 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
702 | +[1;31m[ALLOC] Allocated 54 bytes to 2000F510[1;00m | |
703 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
704 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
705 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
706 | +[1;31m[ALLOC] Allocated 177 bytes to 200100F0[1;00m | |
707 | +[1;32m[FREE] Freed bytes from 20010068[1;00m | |
708 | +[1;32m[FREE] Freed bytes from 2000F510[1;00m | |
709 | +[1;31m[ALLOC] Allocated 179 bytes to 20010018[1;00m | |
710 | +[1;32m[FREE] Freed bytes from 200100F0[1;00m | |
711 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F478[1;00m | |
712 | +[1;31m[ALLOC] Allocated 62 bytes to 2000F4F0[1;00m | |
713 | +[1;31m[ALLOC] Allocated 347 bytes to 200100D8[1;00m | |
714 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F4A0[1;00m | |
715 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
716 | +[1;32m[FREE] Freed bytes from 200100D8[1;00m | |
717 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F4B8[1;00m | |
718 | +[1;32m[FREE] Freed bytes from 2000F4B8[1;00m | |
719 | +[1;32m[FREE] Freed bytes from 2000F4F0[1;00m | |
720 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
721 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
722 | +[1;35mbuffer.c:[1;00m Data sent successfully | |
723 | +[1;32m[FREE] Freed bytes from 2000FC20[1;00m | |
724 | +[1;32m[FREE] Freed bytes from 2000F4C8[1;00m | |
725 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
726 | +[1;32m[FREE] Freed bytes from 2000F450[1;00m | |
727 | +[1;35mmain.c:[1;00m Polling battery level... | |
728 | +[1;31m[ALLOC] Allocated 12 bytes to 2000F428[1;00m | |
729 | +[1;31m[ALLOC] Allocated 25 bytes to 2000F440[1;00m | |
730 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
731 | +[1;31m[ALLOC] Allocated 18 bytes to 2000F4A0[1;00m | |
732 | +[1;31m[ALLOC] Allocated 5 bytes to 2000F428[1;00m | |
733 | +[1;31m[ALLOC] Allocated 16 bytes to 2000F478[1;00m | |
734 | +[1;31m[ALLOC] Allocated 15 bytes to 2000F4C0[1;00m | |
735 | +[1;31m[ALLOC] Allocated 30 bytes to 2000F4D8[1;00m | |
736 | +[1;31m[ALLOC] Allocated 45 bytes to 2000F500[1;00m | |
737 | +[1;32m[FREE] Freed bytes from 2000F4D8[1;00m | |
738 | +[1;32m[FREE] Freed bytes from 2000F478[1;00m | |
739 | +[1;31m[ALLOC] Allocated 48 bytes to 2000F538[1;00m | |
740 | +[1;32m[FREE] Freed bytes from 2000F4C0[1;00m | |
741 | +[1;32m[FREE] Freed bytes from 2000F500[1;00m | |
742 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
743 | +[1;31m[ALLOC] Allocated 65 bytes to 2000F4C0[1;00m | |
744 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
745 | +[1;32m[FREE] Freed bytes from 2000F538[1;00m | |
746 | +[1;31m[ALLOC] Allocated 67 bytes to 2000F510[1;00m | |
747 | +[1;32m[FREE] Freed bytes from 2000F4C0[1;00m | |
748 | +[1;32m[FREE] Freed bytes from 2000F440[1;00m | |
749 | +[1;31m[ALLOC] Allocated 14 bytes to 2000F428[1;00m | |
750 | +[1;31m[ALLOC] Allocated 62 bytes to 2000F4A0[1;00m | |
751 | +[1;31m[ALLOC] Allocated 234 bytes to 20010018[1;00m | |
752 | +[1;31m[ALLOC] Allocated 3 bytes to 2000F440[1;00m | |
753 | +[1;32m[FREE] Freed bytes from 2000F440[1;00m | |
754 | +[1;32m[FREE] Freed bytes from 20010018[1;00m | |
755 | +[1;31m[ALLOC] Allocated 4 bytes to 2000F458[1;00m | |
756 | +[1;32m[FREE] Freed bytes from 2000F458[1;00m | |
757 | +[1;32m[FREE] Freed bytes from 2000F4A0[1;00m | |
758 | +[1;32m[FREE] Freed bytes from 2000F428[1;00m | |
759 | +[1;32m[FREE] Freed bytes from 2000F510[1;00m | |
760 | +[1;35mmain.c:[1;00m Requesting new NTP time... | |
761 | +[1;35mmain.c:[1;00m Updating new time to 3611098035 | |
762 | +[1;35mmain.c:[1;00m Time updated | |
763 | +[1;35mmain.c:[1;00m Disconnecting wifi... | |
764 | +[1;35mmain.c:[1;00m Disconnecting Successful: WIFI_DISCONNECT_SUCCESS | |
765 | +[1;35mmain.c:[1;00m New NTP time (absolute): 3611098035 | |
766 | +Time LONG_PERIOD: 45 | |
767 | +Time SHORT_PERIOD: 15 | |
768 | +[1;35mbuffer.c:[1;00m Checking available memory... | |
769 | +[1;35mbuffer.c:[1;00m [1;36mAvailable memory: 33544 B[1;00m | |
770 | +[1;35mbuffer.c:[1;00m [1;36mUsed memory: 1160 B[1;00m | |
771 | +[1;35mmain.c:[1;00m Time (absolute): 3611098035 | |
772 | +Time LONG_PERIOD: 45 | |
773 | +Time SHORT_PERIOD: 15 | |
774 | +[1;31mFailed[1;00m | ... | ... |
Project/applications/smartcities/sensors.c
... | ... | @@ -439,17 +439,6 @@ void collectData(char* valueSensors[], uint8_t* sensors) |
439 | 439 | uint8_t i; |
440 | 440 | for(i=0;i<strlen((char*)sensors);i++) |
441 | 441 | { |
442 | - | |
443 | - if(valueSensors[i]!=NULL) | |
444 | - { | |
445 | - DBG_SENSORS("Freeing memory from previous entry on index %d\r\n",i); | |
446 | - chHeapFree(valueSensors[i]); | |
447 | - } | |
448 | - else | |
449 | - { | |
450 | - DBG_SENSORS("Not freeing memory on index %d\r\n",i); | |
451 | - } | |
452 | - | |
453 | 442 | if(sensors[i]==LIGHT_ADDR) |
454 | 443 | { |
455 | 444 | DBG_SENSORS("Fetching data from light sensor\r\n"); | ... | ... |