Commit 3576493b07a4097674abe9d82f754f0a1fa35af8
1 parent
1fe54c27
--no commit message
Showing
3 changed files
with
12 additions
and
3 deletions
Project/applications/smartcities/include/buffer.h
... | ... | @@ -42,7 +42,7 @@ int check_memory(void); |
42 | 42 | |
43 | 43 | //! Buffer data send function |
44 | 44 | /*! This function sends the data in a specified buffer to the server. If successful, it frees the memory used by it. */ |
45 | -int send(char** buf /*! Buffer to send */, uint32_t *index /*! Current buffer index */, uint32_t *size /*! Buffer size */, char *provider_ID /*! Current module ID */, char *sensor_ID /*! Sensor ID for the data stored in that buffer */); | |
45 | +int send(char** buf /*! Buffer to send */, uint32_t *index /*! Current buffer index */, uint32_t *size_buf /*! Buffer size */, char *provider_ID /*! Current module ID */, char *sensor_ID /*! Sensor ID for the data stored in that buffer */); | |
46 | 46 | |
47 | 47 | //! Buffer join function |
48 | 48 | /*! This function returns a copy of the buffer passed by argument with one more slot to store another piece of data from the sensors */ | ... | ... |
Project/applications/smartcities/include/callbacks.h
1 | + | |
2 | +/**@file | |
3 | + * @brief Declaration for the network callback functions | |
4 | + * @author Imanol Barba Sabariego, Maria Jorba Brosa | |
5 | + * @date 08/06/2014 | |
6 | + * | |
7 | + * The functions declared in this file are used as callbacks by the network functions in the libwismart library. | |
8 | + */ | |
9 | + | |
1 | 10 | #ifndef CALLBACKS_H |
2 | 11 | #define CALLBACKS_H |
3 | 12 | ... | ... |
Project/applications/smartcities/main.c
... | ... | @@ -160,7 +160,7 @@ void send_data(char** buffers[] /*! Array of in-memory buffers containing the da |
160 | 160 | |
161 | 161 | //! Buffer data insertion function |
162 | 162 | /*! This function inserts processed data in the memory */ |
163 | -void put_buffers(char** buffers[],/*! Array of in-memory buffers containing the data */, uint32_t ind[] /*! Buffer indexes */ , uint32_t sizes[] /*! Buffer sizes */,char** cooked /*! Array of processed data from the sensors */, uint8_t* sensors /*! Array of sensors addresses currently connected to the device */) | |
163 | +void put_buffers(char** buffers[]/*! Array of in-memory buffers containing the data */, uint32_t ind[] /*! Buffer indexes */ , uint32_t sizes[] /*! Buffer sizes */,char** cooked /*! Array of processed data from the sensors */, uint8_t* sensors /*! Array of sensors addresses currently connected to the device */) | |
164 | 164 | { |
165 | 165 | DBG("Putting data in buffers...\r\n"); |
166 | 166 | int i; |
... | ... | @@ -178,7 +178,7 @@ void put_buffers(char** buffers[],/*! Array of in-memory buffers containing the |
178 | 178 | |
179 | 179 | //! Data timestamping function |
180 | 180 | /*! This function timestamps de collected data using the methods defined in ntp.h */ |
181 | -char** timestamp_datas(char* value[] /*! Raw data collected from the sensors */,unsigned long timestamp /* Current timestamp to add to the measurements*/, uint8_t* sensors /*! Array of sensors addresses currently connected to the device */) | |
181 | +char** timestamp_datas(char* value[] /*! Raw data collected from the sensors */,unsigned long timestamp /*! Current timestamp to add to the measurements*/, uint8_t* sensors /*! Array of sensors addresses currently connected to the device */) | |
182 | 182 | { |
183 | 183 | DBG("Timestamping data...\r\n"); |
184 | 184 | char** cooked_data; | ... | ... |