Commit a01f02a6c48e55f08230a55079309d3fb57aff34

Authored by Imanol-Mikel Barba Sabariego
1 parent 0af5b52a

--no commit message

Project/applications/smartcities/include/buffer.h
1 -  
2 -  
3 -  
4 -  
5 #ifndef BUFFER_H 1 #ifndef BUFFER_H
6 #define BUFFER_H 2 #define BUFFER_H
7 3
Project/applications/smartcities/include/callbacks.h
1 -#ifndef MODULE_H  
2 -#define MODULE_H 1 +#ifndef CALLBACKS_H
  2 +#define CALLBACKS_H
3 3
4 #include "libwismart.h" 4 #include "libwismart.h"
5 5
Project/applications/smartcities/include/module.h
1 #ifndef MODULE_H 1 #ifndef MODULE_H
2 #define MODULE_H 2 #define MODULE_H
3 3
4 -typedef struct module_info module;  
5 -struct module_info { 4 +typedef struct {
6 char* ID; 5 char* ID;
7 char* geoloc; 6 char* geoloc;
8 -}; 7 +} module;
9 8
10 extern module mod; 9 extern module mod;
11 10
Project/applications/smartcities/include/sensors.h
@@ -4,13 +4,12 @@ @@ -4,13 +4,12 @@
4 #include <stdint.h> 4 #include <stdint.h>
5 5
6 6
7 -typedef struct sensor_info sensor;  
8 -struct sensor_info { 7 +typedef struct {
9 uint8_t ID; 8 uint8_t ID;
10 char* description; 9 char* description;
11 char* type; 10 char* type;
12 char* unit; 11 char* unit;
13 -}; 12 +} sensor;
14 13
15 extern sensor humidity_sensor; 14 extern sensor humidity_sensor;
16 15