Open Storm
config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3 
4 // Default node info
5 #define DEFAULT_NODE_ID "example_node"
6 
7 // Default user info
8 #define DEFAULT_HOME_USER "home_user"
9 #define DEFAULT_HOME_PASS "home_pass"
10 #define DEFAULT_HOME_DB "HOME_DB"
11 #define DEFAULT_HOME_PORT 8086
12 #define DEFAULT_HOME_HOST "ec2-13-58-145-29.us-east-2.compute.amazonaws.com"
13 
14 // Meta user info
15 #define DEFAULT_META_USER "meta_user"
16 #define DEFAULT_META_PASS "meta_pass"
17 #define DEFAULT_META_DB "META_DB"
18 #define DEFAULT_META_PORT 8086
19 #define DEFAULT_META_HOST "ec2-52-87-156-130.compute-1.amazonaws.com"
20 
21 // Other InfluxDB parameters
22 #define DEFAULT_GLOBAL_TAGS "source=node"
23 
24 // Modem parameters
25 #define MAX_CONNECTION_ATTEMPTS 5
26 
27 // SSL parameters
28 #define SSL_ENABLED 1u
29 #define ENABLE_SSL_CONFIG 1u
30 #define ENABLE_SSL_SEC_CONFIG 1u
31 
32 // GPS
33 #define MIN_SATELLITES 3
34 #define MAX_GPS_TRIES 6
35 
36 // Global parameters
37 #define SLEEPTIMER 460u
38 
39 // Flags to activate devices
40 #define MODEM_FLAG 1u
41 #define META_FLAG 1u
42 #define VBAT_FLAG 1u
43 #define GPS_FLAG 1u
44 #define ULTRASONIC_FLAG 0u
45 #define ULTRASONIC_2_FLAG 0u
46 #define SENIX_FLAG 0u
47 #define OPTICAL_RAIN_FLAG 0u
48 #define DECAGON_FLAG 0u
49 #define AUTOSAMPLER_FLAG 0u
50 #define VALVE_FLAG 0u
51 #define VALVE_2_FLAG 0u
52 #define ATLAS_WQ_FLAG 0u
53 
54 // Flags to trigger devices
55 #define AUTOSAMPLER_TRIGGER 0u
56 #define VALVE_TRIGGER -1
57 #define VALVE_2_TRIGGER -1
58 #define META_TRIGGER 1u
59 #define GPS_TRIGGER 1u
60 
61 // Number of loops for each device
62 #define VBAT_LOOPS 1
63 #define ULTRASONIC_LOOPS 5
64 #define OPTICAL_RAIN_LOOPS 1
65 #define DECAGON_LOOPS 1
66 
67 #endif
68 /* [] END OF FILE */